net: netif_device_attach/detach should start/stop all queues
Subsystems (2)
PATCH 1/1 net: netif_device_attach/detach should start/stop all queues
From: Alexander Duyck <[email protected]>
Currently netif_device_attach/detach are only stopping one queue. They should be starting and stopping all the queues on a given device.
Signed-off-by Alexander Duyck <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
net/core/dev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/core/dev.c +2 -2
@@ -1430,7 +1430,7 @@ void netif_device_detach(struct net_device *dev) {if (test_and_clear_bit (__LINK_STATE_PRESENT, &dev->state) &&netif_running (dev)) { -netif_stop_queue (dev); +netif_tx_stop_all_queues (dev); } }EXPORT_SYMBOL (netif_device_detach);
@@ -1445,7 +1445,7 @@ void netif_device_attach(struct net_device *dev) {if (!test_and_set_bit (__LINK_STATE_PRESENT, &dev->state) &&netif_running (dev)) { -netif_wake_queue (dev); +netif_tx_wake_all_queues (dev);__netdev_watchdog_up (dev); } }
From: Jeff Kirsher <[email protected]>
Date: Wed, 08 Apr 2009 16:15:22 -0700
Quoted 5 lines
Currently netif_device_attach/detach are only stopping one queue. They should be starting and stopping all the queues on a given device.
Signed-off-by Alexander Duyck <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.