net: sched: avoid duplicates in classes dump
authorMaximilian Heyne <mheyne@amazon.de>
Thu, 4 Mar 2021 14:43:17 +0000 (14:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:03:35 +0000 (17:03 +0100)
commit392f34cce2b0467aba179d2a0a07016ef3e2b45e
tree8d8a624da0e04048c5f6531eab198c7d03253d36
parent3e66c16388f5e59ba73dd05e0667c10bc04ac29b
net: sched: avoid duplicates in classes dump

commit bfc2560563586372212b0a8aeca7428975fa91fe upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_api.c