summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-27 10:25:57 +0200
committerDavid S. Miller <davem@davemloft.net>2010-09-28 07:09:52 +0200
commita020ed4bb88356fea9e24ffcfd9692a835a3f122 (patch)
tree336007a325be5a8743d2f8248820a6d73efb2d6e /drivers/net
parentcxgb3: Use netif_set_real_num_{rx,tx}_queues() (diff)
downloadlinux-a020ed4bb88356fea9e24ffcfd9692a835a3f122.tar.xz
linux-a020ed4bb88356fea9e24ffcfd9692a835a3f122.zip
cxgb4: 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')
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index 75b9401fd484..4fb08e3c3f38 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -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);