]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: taprio: Fix init procedure
authorYannick Vignon <yannick.vignon@nxp.com>
Fri, 30 Jul 2021 16:53:21 +0000 (18:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2021 10:47:35 +0000 (11:47 +0100)
commit3081fe8a54b91b166aa2abcb7ebeb17116256a3b
treeb44f5924efbb951631eebccbe98711a7a8291a41
parent3b3926f320902fca70c9ec18d27c367bfe4ad818
net/sched: taprio: Fix init procedure

Commit 8f05635a203cae ("net: taprio offload: enforce qdisc to netdev queue mapping")
resulted in duplicate entries in the qdisc hash.
While this did not impact the overall operation of the qdisc and taprio
code paths, it did result in an infinite loop when dumping the qdisc
properties, at least on one target (NXP LS1028 ARDB).
Removing the duplicate call to qdisc_hash_add() solves the problem.

Fixes: 8f05635a203cae ("net: taprio offload: enforce qdisc to netdev queue mapping")
Signed-off-by: Yannick Vignon <yannick.vignon@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_taprio.c