mlx4: Call alloc_etherdev to allocate RX and TX queues
authorTom Herbert <therbert@google.com>
Sun, 9 Jan 2011 19:36:36 +0000 (19:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jan 2011 00:05:31 +0000 (16:05 -0800)
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>
drivers/net/mlx4/en_netdev.c

index 6d6806b361e3145e31e654db0acef6152fec7b4b..897f576b8b17d7499c16148fd36ee2178a139737 100644 (file)
@@ -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;