summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-10-18 11:34:26 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-19 02:00:02 +0300
commit3c53ed8fef6881a864f0ee8240ed2793ef73ad0d (patch)
tree919d4fbb499bbca7812fa8fb1d4a37d544eb586b /net/socket.c
parent6b839b6cf9eada30b086effb51e5d6076bafc761 (diff)
downloadlinux-3c53ed8fef6881a864f0ee8240ed2793ef73ad0d.tar.xz
net: sched: Fix for duplicate class dump
When dumping classes by parent, kernel would return classes twice: | # tc qdisc add dev lo root prio | # tc class show dev lo | class prio 8001:1 parent 8001: | class prio 8001:2 parent 8001: | class prio 8001:3 parent 8001: | # tc class show dev lo parent 8001: | class prio 8001:1 parent 8001: | class prio 8001:2 parent 8001: | class prio 8001:3 parent 8001: | class prio 8001:1 parent 8001: | class prio 8001:2 parent 8001: | class prio 8001:3 parent 8001: This comes from qdisc_match_from_root() potentially returning the root qdisc itself if its handle matched. Though in that case, root's classes were already dumped a few lines above. Fixes: cb395b2010879 ("net: sched: optimize class dumps") Signed-off-by: Phil Sutter <phil@nwl.cc> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions