Re: [net-next PATCH v2 2/8] net: rework setup_tc ndo op to consume general tc operand

2016-02-28 Thread Alaa Hleihel
Hi John, On 2/16/2016 08:00, John Fastabend wrote: > @@ -140,9 +141,11 @@ static int mqprio_init(struct Qdisc *sch, struct nlattr > *opt) >* supplied and verified mapping >*/ > if (qopt->hw) { > + struct tc_to_netdev tc = {.type = TC_SETUP_MQPRIO, > +

Re: [net-next PATCH v2 2/8] net: rework setup_tc ndo op to consume general tc operand

2016-02-16 Thread Jiri Pirko
Tue, Feb 16, 2016 at 07:00:57AM CET, john.fastab...@gmail.com wrote: >This patch updates setup_tc so we can pass additional parameters into >the ndo op in a generic way. To do this we provide structured union >and type flag. > >This lets each classifier and qdisc provide its own set of attributes >

[net-next PATCH v2 2/8] net: rework setup_tc ndo op to consume general tc operand

2016-02-15 Thread John Fastabend
This patch updates setup_tc so we can pass additional parameters into the ndo op in a generic way. To do this we provide structured union and type flag. This lets each classifier and qdisc provide its own set of attributes without having to add new ndo ops or grow the signature of the callback. S