Re: [patch net-next v10 02/13] net: sched: introduce shared filter blocks infrastructure

2018-01-17 Thread Jiri Pirko
Wed, Jan 17, 2018 at 01:03:15AM CET, xiyou.wangc...@gmail.com wrote: >On Tue, Jan 16, 2018 at 7:33 AM, Jiri Pirko wrote: >> static int __init tc_filter_init(void) >> { >> + int err; >> + >> tc_filter_wq = alloc_ordered_workqueue("tc_filter_workqueue", 0); >> if (!tc_filter_

Re: [patch net-next v10 02/13] net: sched: introduce shared filter blocks infrastructure

2018-01-16 Thread Cong Wang
On Tue, Jan 16, 2018 at 7:33 AM, Jiri Pirko wrote: > static int __init tc_filter_init(void) > { > + int err; > + > tc_filter_wq = alloc_ordered_workqueue("tc_filter_workqueue", 0); > if (!tc_filter_wq) > return -ENOMEM; > > + err = register_pernet_subs

[patch net-next v10 02/13] net: sched: introduce shared filter blocks infrastructure

2018-01-16 Thread Jiri Pirko
From: Jiri Pirko Allow qdiscs to share filter blocks among them. Each qdisc type has to use block get/put extended modifications that enable sharing. Shared blocks are tracked within each net namespace and identified by u32 index. This index is passed from user during the qdisc creation. If user