diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 04:25:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 01:09:52 -0400 |
commit | a020ed4bb88356fea9e24ffcfd9692a835a3f122 (patch) | |
tree | 336007a325be5a8743d2f8248820a6d73efb2d6e /drivers/net/cxgb4 | |
parent | 19221e75da32cecbd3fe83a8ac12755fe38a4602 (diff) |
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/cxgb4')
-rw-r--r-- | drivers/net/cxgb4/cxgb4_main.c | 5 |
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) | |||
2763 | return err; | 2763 | return err; |
2764 | } | 2764 | } |
2765 | 2765 | ||
2766 | dev->real_num_tx_queues = pi->nqsets; | 2766 | netif_set_real_num_tx_queues(dev, pi->nqsets); |
2767 | err = netif_set_real_num_rx_queues(dev, pi->nqsets); | ||
2768 | if (err) | ||
2769 | return err; | ||
2767 | err = link_start(dev); | 2770 | err = link_start(dev); |
2768 | if (!err) | 2771 | if (!err) |
2769 | netif_tx_start_all_queues(dev); | 2772 | netif_tx_start_all_queues(dev); |