[PATCH v2 iproute2-next] Add SKB Priority qdisc support in tc(8)

2018-08-13 Thread Nishanth Devarajan
ute packets with different priorities as a means to overcome DoS attacks. Signed-off-by: Nishanth Devarajan Reviewed-by: Michel Machado --- v2 *Patch applies cleanly, fixes for proper code indentation. --- man/man8/tc-skbprio.8 | 70 ++ tc/Makefile |

[PATCH iproute2-next] Add SKB Priority qdisc support in tc(8)

2018-08-08 Thread Nishanth Devarajan
ute packets with different priorities as a means to overcome DoS attacks. Signed-off-by: Nishanth Devarajan Reviewed-by: Michel Machado --- include/uapi/linux/pkt_sched.h | 7 man/man8/tc-skbprio.8 | 70 tc/Makefile| 1 +

[PATCH iproute2-next] Add tc(8) userspace support for SKB Priority qdisc

2018-07-28 Thread Nishanth Devarajan
ute packets with different priorities as a means to overcome DoS attacks. Signed-off-by: Nishanth Devarajan Reviewed-by: Michel Machado --- include/uapi/linux/pkt_sched.h | 7 man/man8/tc-skbprio.8 | 70 tc/Makefile| 1 +

[PATCH v5 net-next] net/sched: add skbprio scheduler

2018-07-23 Thread Nishanth Devarajan
ed packets. v2 *Use skb->priority field rather than DS field. Rename queueing discipline as SKB Priority Queue (previously Gatekeeper Priority Queue). *Queueing discipline is made classful to expose Skbprio's internal priority queues. Signed-off-by: Nishanth Devarajan Reviewed-by: Sachi

[PATCH v4 net-next] net/sched: add skbprio scheduler

2018-07-19 Thread Nishanth Devarajan
Queue (previously Gatekeeper Priority Queue). *Queueing discipline is made classful to expose Skbprio's internal priority queues. Signed-off-by: Nishanth Devarajan Reviewed-by: Sachin Paryani Reviewed-by: Cody Doucette Reviewed-by: Michel Machado --- include/uapi/linux/pkt_sched.h | 15

[PATCH v3 net-next] net/sched: add skbprio scheduler

2018-07-07 Thread Nishanth Devarajan
ternal priority queues. Signed-off-by: Nishanth Devarajan Reviewed-by: Sachin Paryani Reviewed-by: Cody Doucette Reviewed-by: Michel Machado --- Documentation/networking/sch_skbprio.txt | 24 +++ include/uapi/linux/pkt_sched.h | 15 ++ net/sched/Kconfig| 13

Re: [PATCH v2 net-next] net/sched: add skbprio scheduler

2018-06-25 Thread Nishanth Devarajan
On Sun, Jun 24, 2018 at 11:43:07AM -0400, Jamal Hadi Salim wrote: > On 23/06/18 04:47 PM, Nishanth Devarajan wrote: > [..] > > >+/* Drop the packet at the tail of the lowest priority qdisc. */ > >+lp_qdisc = &q->qdiscs[lp]; > >+to_drop = __skb_dequ

Re: [PATCH v2 net-next] net/sched: add skbprio scheduler

2018-06-25 Thread Nishanth Devarajan
On Sat, Jun 23, 2018 at 03:10:32PM -0700, Alexander Duyck wrote: > On Sat, Jun 23, 2018 at 1:47 PM, Nishanth Devarajan > wrote: > > net/sched: add skbprio scheduler > > > > Skbprio (SKB Priority Queue) is a queueing discipline that prioritizes > > packets > &

Re: [PATCH v2 net-next] net/sched: add skbprio scheduler

2018-06-25 Thread Nishanth Devarajan
On Sat, Jun 23, 2018 at 02:43:16PM -0700, Cong Wang wrote: > On Sat, Jun 23, 2018 at 1:47 PM, Nishanth Devarajan > wrote: > > diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h > > index 37b5096..6fd07e8 100644 > > --- a/include/uapi/linux/pkt_s

[PATCH v2 net-next] net/sched: add skbprio scheduler

2018-06-23 Thread Nishanth Devarajan
Skbprio's internal priority queues. Signed-off-by: Nishanth Devarajan Reviewed-by: Sachin Paryani Reviewed-by: Cody Doucette Reviewed-by: Michel Machado --- include/uapi/linux/pkt_sched.h | 15 ++ net/sched/Kconfig | 13 ++ net/sched/Makefile | 1 + net/sched

[PATCH v2 net-next] net/sched: add skbprio scheduler

2018-06-06 Thread Nishanth Devarajan
to expose Skbprio's internal priority queues. Signed-off-by: Nishanth Devarajan Reviewed-by: Sachin Paryani Reviewed-by: Cody Doucette Reviewed-by: Michel Machado --- include/uapi/linux/pkt_sched.h | 15 ++ net/sched/Kconfig | 13 ++ net/sched/Makefile |

Re: [PATCH net-next] net:sched: add gkprio scheduler

2018-05-08 Thread Nishanth Devarajan
On Mon, May 07, 2018 at 10:24:51PM -0700, Cong Wang wrote: > On Mon, May 7, 2018 at 2:36 AM, Nishanth Devarajan wrote: > > net/sched: add gkprio scheduler > > > > Gkprio (Gatekeeper Priority Queue) is a queueing discipline that prioritizes > > IPv4 and IPv6 packets acco

[PATCH net-next] net:sched: add gkprio scheduler

2018-05-07 Thread Nishanth Devarajan
as a solution for denial-of-service defenses that need to route packets with different priorities. Signed-off-by: Nishanth Devarajan Reviewed-by: Cody Doucette Reviewed-by: Michel Machado Reviewed-by: Sachin Paryani --- include/uapi/linux/pkt_sched.h | 11 ++ net/sched/Kconfig

Re: [PATCH iproute2/net-next v3]tc: B.W limits can now be specified in %.

2017-11-24 Thread Nishanth Devarajan
On Fri, Nov 24, 2017 at 11:25:28AM -0800, Stephen Hemminger wrote: > On Sat, 18 Nov 2017 02:13:38 +0530 > Nishanth Devarajan wrote: > > > This patch adapts the tc command line interface to allow bandwidth limits > > to be specified as a percentage of the interface's

[PATCH iproute2/net-next v4]tc: B.W limits can now be specified in %.

2017-11-20 Thread Nishanth Devarajan
that the property is unknown. v4: * int read_prop() in lib/utils.c was using strtoul() API, this was changed to strtol() * 'const' quantifier was added to device string arguments in .parse_qopt and .parse_copt interface headers Signed-off by: Nishanth Devarajan --- include/util

[PATCH iproute2/net-next v3]tc: B.W limits can now be specified in %.

2017-11-17 Thread Nishanth Devarajan
means that the property is unknown. Signed-off by: Nishanth Devarajan --- include/utils.h | 2 ++ ip/iptuntap.c | 32 --- lib/utils.c | 68 + man/man8/tc.8 | 5 - tc/q_atm.c | 2 +- tc/q_cbq.c

[PATCH iproute2/net-next v2]tc: B.W limits can now be specified in %.

2017-11-14 Thread Nishanth Devarajan
this patch, if the user tries to specify a bandwidth percentage without naming the device, we return an error from userspace. Signed-off by: Nishanth Devarajan --- include/utils.h | 1 + ip/iptuntap.c | 32 lib/utils.c | 51 +++

[PATCH iproute2/net-next]tc: B.W limits can now be specified in %

2017-10-28 Thread Nishanth Devarajan
tries to specify a bandwidth percentage without naming the device, we return an error from userspace. Signed-off-by: Nishanth Devarajan --- include/utils.h | 1 + ip/iptuntap.c | 32 lib/utils.c | 32 man/man8/tc.8 | 4 +++