• Eric Dumazet's avatar
    net: sched: optimize class dumps · cb395b20
    Eric Dumazet authored
    In commit 59cc1f61 ("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: default avatarEric 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: default avatarDavid S. Miller <davem@davemloft.net>
    cb395b20
sch_api.c 46.8 KB