Commit a11faac7 authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller

mlx4_en: using stop/start_all_queues

After we moved to be a multi queue device, need to stop/start
all of our transmit queues.
Signed-off-by: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d4ddbaa6
...@@ -668,7 +668,7 @@ int mlx4_en_start_port(struct net_device *dev) ...@@ -668,7 +668,7 @@ int mlx4_en_start_port(struct net_device *dev)
queue_work(mdev->workqueue, &priv->mcast_task); queue_work(mdev->workqueue, &priv->mcast_task);
priv->port_up = true; priv->port_up = true;
netif_start_queue(dev); netif_tx_start_all_queues(dev);
return 0; return 0;
mac_err: mac_err:
...@@ -700,7 +700,7 @@ void mlx4_en_stop_port(struct net_device *dev) ...@@ -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"); en_dbg(DRV, priv, "stop port called while port already down\n");
return; return;
} }
netif_stop_queue(dev); netif_tx_stop_all_queues(dev);
/* Synchronize with tx routine */ /* Synchronize with tx routine */
netif_tx_lock_bh(dev); netif_tx_lock_bh(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment