]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: make newly activated qdiscs visible
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 10 Mar 2020 16:53:35 +0000 (17:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 06:17:28 +0000 (23:17 -0700)
commitff6d982d3643181db668e0aebe88036c4debcf6f
tree2c8a0b60de98ed17368e8daa55dae141569c2bbb
parent8d7ea2f8486999ac4a21b259109deb244aa72e7f
net: sched: make newly activated qdiscs visible

In their .attach callback, mq[prio] only add the qdiscs of the currently
active TX queues to the device's qdisc hash list.
If a user later increases the number of active TX queues, their qdiscs
are not visible via eg. 'tc qdisc show'.

Add a hook to netif_set_real_num_tx_queues() that walks all active
TX queues and adds those which are missing to the hash list.

CC: Eric Dumazet <edumazet@google.com>
CC: Jamal Hadi Salim <jhs@mojatatu.com>
CC: Cong Wang <xiyou.wangcong@gmail.com>
CC: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/core/dev.c
net/sched/sch_generic.c