aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-27 04:29:34 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-28 01:09:54 -0400
commit1eb63a28148336b8a97ff5ee0ecd6830e76a7044 (patch)
treeb2f049a13d0132eb8dc50cd61629903aa5d37a5c /drivers/net/mlx4
parent847f53ff40a81c94367aabb2ef05f2b99cb5706d (diff)
mlx4_en: Use netif_set_real_num_{rx, tx}_queues()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r--drivers/net/mlx4/en_netdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c
index 411bda581c04..79478bd4211a 100644
--- a/drivers/net/mlx4/en_netdev.c
+++ b/drivers/net/mlx4/en_netdev.c
@@ -1025,7 +1025,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
1025 */ 1025 */
1026 dev->netdev_ops = &mlx4_netdev_ops; 1026 dev->netdev_ops = &mlx4_netdev_ops;
1027 dev->watchdog_timeo = MLX4_EN_WATCHDOG_TIMEOUT; 1027 dev->watchdog_timeo = MLX4_EN_WATCHDOG_TIMEOUT;
1028 dev->real_num_tx_queues = MLX4_EN_NUM_TX_RINGS; 1028 netif_set_real_num_tx_queues(dev, priv->tx_ring_num);
1029 netif_set_real_num_rx_queues(dev, priv->rx_ring_num);
1029 1030
1030 SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops); 1031 SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops);
1031 1032