: netdev: netif_tx_disable() needs to operate on all TX queues.
Subsystems (2)
David Miller
maintainerPATCH 27/39 : netdev: netif_tx_disable() needs to operate on all TX queues.
Signed-off-by David S. Miller <[email protected]>
--- include/linux/netdevice.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
include/linux/netdevice.h +6 -1
@@ -1513,8 +1513,13 @@ static inline void netif_tx_unlock_bh(struct net_device *dev)static inline void netif_tx_disable (struct net_device *dev) { +unsigned int i; +netif_tx_lock_bh (dev); -netif_stop_queue (dev); +for (i =0 ; i < dev->num_tx_queues; i++) { +struct netdev_queue *txq =netdev_get_tx_queue (dev, i); +netif_tx_stop_queue (txq); + }netif_tx_unlock_bh (dev); }
Signature · 1 line
1.5.6