diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 04:25:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 01:09:51 -0400 |
commit | 19221e75da32cecbd3fe83a8ac12755fe38a4602 (patch) | |
tree | e0c891da976aedb770d2e95a2e793976a99dd8b3 | |
parent | 31b600b5fcd101acffb261f87f60f27085ca6509 (diff) |
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>
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 5 |
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) | |||
1399 | "Could not initialize offload capabilities\n"); | 1399 | "Could not initialize offload capabilities\n"); |
1400 | } | 1400 | } |
1401 | 1401 | ||
1402 | dev->real_num_tx_queues = pi->nqsets; | 1402 | netif_set_real_num_tx_queues(dev, pi->nqsets); |
1403 | err = netif_set_real_num_rx_queues(dev, pi->nqsets); | ||
1404 | if (err) | ||
1405 | return err; | ||
1403 | link_start(dev); | 1406 | link_start(dev); |
1404 | t3_port_intr_enable(adapter, pi->port_id); | 1407 | t3_port_intr_enable(adapter, pi->port_id); |
1405 | netif_tx_start_all_queues(dev); | 1408 | netif_tx_start_all_queues(dev); |