From: Alexander Duyck Date: Wed, 8 Apr 2009 13:15:22 +0000 (+0000) Subject: net: netif_device_attach/detach should start/stop all queues X-Git-Tag: v3.12-rc1~14422^2~231 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d543103a0c75edc0a7a08dfd796de67466a15dfb;p=kernel%2Fkernel-generic.git net: netif_device_attach/detach should start/stop all queues 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 Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 91d792d..ea8eb22 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -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); } }