Skip to contentSkip to conversation

mlx4_en: using stop/start_all_queues

PATCH In review Yevgeny Petrilin 1 participant 1 message Jun 21, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/6 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.

---
 drivers/net/mlx4/en_netdev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/mlx4/en_netdev.c +2 -2
index e02bafd..20a34cb 100644
@@ -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);
Signature · 1 line
1.6.0