]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cxgb4: Use netif_set_real_num_{rx,tx}_queues()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 27 Sep 2010 08:25:57 +0000 (08:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 05:09:52 +0000 (22:09 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c

index 75b9401fd484c9f45ec2a3305b4d2d5a6d58f5ba..4fb08e3c3f3888227c630f61c0a944cfa3320a94 100644 (file)
@@ -2763,7 +2763,10 @@ static int cxgb_open(struct net_device *dev)
                        return err;
        }
 
-       dev->real_num_tx_queues = pi->nqsets;
+       netif_set_real_num_tx_queues(dev, pi->nqsets);
+       err = netif_set_real_num_rx_queues(dev, pi->nqsets);
+       if (err)
+               return err;
        err = link_start(dev);
        if (!err)
                netif_tx_start_all_queues(dev);