Re: [patch net-next RFC] net: sched: don't dump chains only held by actions

2018-07-27 Thread Jiri Pirko
Fri, Jul 27, 2018 at 06:18:14AM CEST, xiyou.wangc...@gmail.com wrote: >On Thu, Jul 26, 2018 at 9:33 AM Jiri Pirko wrote: >> >> From: Jiri Pirko >> >> In case a chain is empty and not explicitly created by a user, >> such chain should not exist. The only exception is if there is >> an action

Re: [patch net-next RFC] net: sched: don't dump chains only held by actions

2018-07-27 Thread Jiri Pirko
Thu, Jul 26, 2018 at 09:59:30PM CEST, jakub.kicin...@netronome.com wrote: >On Thu, 26 Jul 2018 18:31:01 +0200, Jiri Pirko wrote: >> From: Jiri Pirko >> >> In case a chain is empty and not explicitly created by a user, >> such chain should not exist. The only exception is if there is >> an action

Re: [patch net-next RFC] net: sched: don't dump chains only held by actions

2018-07-26 Thread Cong Wang
On Thu, Jul 26, 2018 at 9:33 AM Jiri Pirko wrote: > > From: Jiri Pirko > > In case a chain is empty and not explicitly created by a user, > such chain should not exist. The only exception is if there is > an action "goto chain" pointing to it. In that case, don't show the > chain in the dump.

Re: [patch net-next RFC] net: sched: don't dump chains only held by actions

2018-07-26 Thread Jakub Kicinski
On Thu, 26 Jul 2018 18:31:01 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > In case a chain is empty and not explicitly created by a user, > such chain should not exist. The only exception is if there is > an action "goto chain" pointing to it. In that case, don't show the > chain in the dump.

[patch net-next RFC] net: sched: don't dump chains only held by actions

2018-07-26 Thread Jiri Pirko
From: Jiri Pirko In case a chain is empty and not explicitly created by a user, such chain should not exist. The only exception is if there is an action "goto chain" pointing to it. In that case, don't show the chain in the dump. Track the chain references held by actions and use them to find