diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-03-10 17:53:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-11 23:17:28 -0700 |
commit | 4cda75275f9f89f9485b0ca4d6950c95258a9bce (patch) | |
tree | 2c8a0b60de98ed17368e8daa55dae141569c2bbb /net/core | |
parent | dacf470b26418e91bef195342b25a234c94052e3 (diff) | |
download | linux-4cda75275f9f89f9485b0ca4d6950c95258a9bce.tar.bz2 |
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>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 25dab1598803..ccc03abeee52 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2875,6 +2875,7 @@ int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq) netif_setup_tc(dev, txq); dev->real_num_tx_queues = txq; + dev_qdisc_set_real_num_tx_queues(dev); if (disabling) { synchronize_net(); |