projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
847f53f
)
mlx4_en: Use netif_set_real_num_{rx, tx}_queues()
author
Ben Hutchings
<bhutchings@solarflare.com>
Mon, 27 Sep 2010 08:29:34 +0000
(08:29 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 28 Sep 2010 05:09:54 +0000
(22:09 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/en_netdev.c
b/drivers/net/mlx4/en_netdev.c
index 411bda581c04febc9a6affd350e1266640f281dd..79478bd4211a958b369f9c8882351e3bcbb89424 100644
(file)
--- 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,
*/
dev->netdev_ops = &mlx4_netdev_ops;
dev->watchdog_timeo = MLX4_EN_WATCHDOG_TIMEOUT;
- dev->real_num_tx_queues = MLX4_EN_NUM_TX_RINGS;
+ netif_set_real_num_tx_queues(dev, priv->tx_ring_num);
+ netif_set_real_num_rx_queues(dev, priv->rx_ring_num);
SET_ETHTOOL_OPS(dev, &mlx4_en_ethtool_ops);