[Patch net v3 2/3] net_sched: fix reference counting of tc filter chain

2017-09-11 Thread Cong Wang
This patch fixes the following ugliness of tc filter chain refcnt: a) tp proto should hold a refcnt to the chain too. This significantly simplifies the logic. b) Chain 0 is no longer special, it is created with refcnt=1 like any other chains. All the ugliness in tcf_chain_put() can be gone!

Re: [Patch net v3 2/3] net_sched: fix reference counting of tc filter chain

2017-09-12 Thread Jiri Pirko
Tue, Sep 12, 2017 at 01:33:31AM CEST, xiyou.wangc...@gmail.com wrote: >This patch fixes the following ugliness of tc filter chain refcnt: > >a) tp proto should hold a refcnt to the chain too. This significantly > simplifies the logic. > >b) Chain 0 is no longer special, it is created with refcnt=