Eric Dumazet cb395b2010 net: sched: optimize class dumps
In commit 59cc1f61f09c ("net: sched: convert qdisc linked list to
hashtable") we missed the opportunity to considerably speed up
tc_dump_tclass_root() if a qdisc handle is provided by user.

Instead of iterating all the qdiscs, use qdisc_match_from_root()
to directly get the one we look for.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-11 21:37:40 -04:00
..
2017-04-12 22:02:40 +02:00
2017-05-04 11:37:09 -07:00
2017-05-11 21:32:48 -04:00
2017-04-13 13:58:20 -04:00
2017-04-21 15:29:40 -04:00
2017-04-06 11:10:41 +01:00
2017-05-11 21:37:40 -04:00
2017-04-06 12:43:04 -07:00