summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_main.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-27 10:25:44 +0200
committerDavid S. Miller <davem@davemloft.net>2010-09-28 07:09:51 +0200
commit19221e75da32cecbd3fe83a8ac12755fe38a4602 (patch)
treee0c891da976aedb770d2e95a2e793976a99dd8b3 /drivers/net/cxgb3/cxgb3_main.c
parentbnx2x: Use netif_set_real_num_{rx,tx}_queues() (diff)
downloadlinux-19221e75da32cecbd3fe83a8ac12755fe38a4602.tar.xz
linux-19221e75da32cecbd3fe83a8ac12755fe38a4602.zip
cxgb3: 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/cxgb3/cxgb3_main.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index f9eede0a4b86..a04ce6a5f637 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -1399,7 +1399,10 @@ static int cxgb_open(struct net_device *dev)
"Could not initialize offload capabilities\n");
}
- 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;
link_start(dev);
t3_port_intr_enable(adapter, pi->port_id);
netif_tx_start_all_queues(dev);