Re: [patch iproute2 net-next v11 2/4] tc: introduce tc_qdisc_block_exists helper

2018-01-20 Thread Jiri Pirko
Fri, Jan 19, 2018 at 09:45:57PM CET, dsah...@gmail.com wrote: >On 1/17/18 2:48 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> This hepler used qdisc dump to list all qdisc and find if block index in >> question is used by any of them. That means the block with specified >> index exists. >> >> S

Re: [patch iproute2 net-next v11 2/4] tc: introduce tc_qdisc_block_exists helper

2018-01-19 Thread David Ahern
On 1/17/18 2:48 AM, Jiri Pirko wrote: > From: Jiri Pirko > > This hepler used qdisc dump to list all qdisc and find if block index in > question is used by any of them. That means the block with specified > index exists. > > Signed-off-by: Jiri Pirko > --- > tc/tc_qdisc.c | 61 > +

[patch iproute2 net-next v11 2/4] tc: introduce tc_qdisc_block_exists helper

2018-01-17 Thread Jiri Pirko
From: Jiri Pirko This hepler used qdisc dump to list all qdisc and find if block index in question is used by any of them. That means the block with specified index exists. Signed-off-by: Jiri Pirko --- tc/tc_qdisc.c | 61 +++ tc/tc_util.