• Julian Wiedmann's avatar
    net: sched: make newly activated qdiscs visible · 4cda7527
    Julian Wiedmann authored
    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: default avatarJulian Wiedmann <jwi@linux.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4cda7527
dev.c 262 KB