diff options
author | Tom Herbert <therbert@google.com> | 2011-01-09 19:36:36 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-11 00:05:31 (GMT) |
commit | f1593d2298acca8b6680100d622911827edb8b0a (patch) | |
tree | ebc4e49a4b94d8a05db9722d4d032c694e300476 /drivers | |
parent | 36909ea43814cba34f7c921e99cba33d770a54e1 (diff) | |
download | linux-fsl-qoriq-f1593d2298acca8b6680100d622911827edb8b0a.tar.xz |
mlx4: Call alloc_etherdev to allocate RX and TX queues
Changed driver to call alloc_etherdev_mqs so that the number of TX
and RX queues can be set to correct values in the netdev device.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index 6d6806b..897f576 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c @@ -972,7 +972,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, int i; int err; - dev = alloc_etherdev_mq(sizeof(struct mlx4_en_priv), prof->tx_ring_num); + dev = alloc_etherdev_mqs(sizeof(struct mlx4_en_priv), + prof->tx_ring_num, prof->rx_ring_num); if (dev == NULL) { mlx4_err(mdev, "Net device allocation failed\n"); return -ENOMEM; |