mlx4_en: using stop/start_all_queues
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Sat, 20 Jun 2009 22:15:46 +0000 (22:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2009 02:18:04 +0000 (19:18 -0700)
After we moved to be a multi queue device, need to stop/start
all of our transmit queues.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_netdev.c

index e02bafdd368204a1831439ff595d110a6d3313a1..20a34cb6392e0a34f19a5de45669de0b4d5f08cb 100644 (file)
@@ -668,7 +668,7 @@ int mlx4_en_start_port(struct net_device *dev)
        queue_work(mdev->workqueue, &priv->mcast_task);
 
        priv->port_up = true;
-       netif_start_queue(dev);
+       netif_tx_start_all_queues(dev);
        return 0;
 
 mac_err:
@@ -700,7 +700,7 @@ void mlx4_en_stop_port(struct net_device *dev)
                en_dbg(DRV, priv, "stop port called while port already down\n");
                return;
        }
-       netif_stop_queue(dev);
+       netif_tx_stop_all_queues(dev);
 
        /* Synchronize with tx routine */
        netif_tx_lock_bh(dev);