aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4vf/cxgb4vf_main.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-09-27 04:26:10 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-28 01:09:52 -0400
commit003ab6742a31662eb808f01273126830612cbda1 (patch)
tree004842424cce205673aaf3efb3a37fd08099c902 /drivers/net/cxgb4vf/cxgb4vf_main.c
parenta020ed4bb88356fea9e24ffcfd9692a835a3f122 (diff)
cxgb4vf: 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/cxgb4vf/cxgb4vf_main.c')
-rw-r--r--drivers/net/cxgb4vf/cxgb4vf_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 7b6d07f50c71..555ecc5a2e93 100644
--- a/drivers/net/cxgb4vf/cxgb4vf_main.c
+++ b/drivers/net/cxgb4vf/cxgb4vf_main.c
@@ -748,7 +748,10 @@ static int cxgb4vf_open(struct net_device *dev)
748 /* 748 /*
749 * Note that this interface is up and start everything up ... 749 * Note that this interface is up and start everything up ...
750 */ 750 */
751 dev->real_num_tx_queues = pi->nqsets; 751 netif_set_real_num_tx_queues(dev, pi->nqsets);
752 err = netif_set_real_num_rx_queues(dev, pi->nqsets);
753 if (err)
754 return err;
752 set_bit(pi->port_id, &adapter->open_device_map); 755 set_bit(pi->port_id, &adapter->open_device_map);
753 link_start(dev); 756 link_start(dev);
754 netif_tx_start_all_queues(dev); 757 netif_tx_start_all_queues(dev);