net: sched: avoid duplicates in classes dump
authorMaximilian Heyne <mheyne@amazon.de>
Thu, 4 Mar 2021 14:43:17 +0000 (14:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2021 22:27:47 +0000 (14:27 -0800)
commitbfc2560563586372212b0a8aeca7428975fa91fe
tree95d334d1435e0dc712c1cb4a5f56874b3435da21
parent6c59cff38e66584ae3ac6c2f0cbd8d039c710ba7
net: sched: avoid duplicates in classes dump

This is a follow up of commit ea3274695353 ("net: sched: avoid
duplicates in qdisc dump") which has fixed the issue only for the qdisc
dump.

The duplicate printing also occurs when dumping the classes via
  tc class show dev eth0

Fixes: 59cc1f61f09c ("net: sched: convert qdisc linked list to hashtable")
Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c