Skip to content

Commit

Permalink
mlx4_en: using stop/start_all_queues
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yevgeny Petrilin authored and David S. Miller committed Jun 22, 2009
1 parent d4ddbaa commit a11faac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/mlx4/en_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a11faac

Please sign in to comment.