diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 10:26:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 07:09:52 +0200 |
commit | 003ab6742a31662eb808f01273126830612cbda1 (patch) | |
tree | 004842424cce205673aaf3efb3a37fd08099c902 /drivers | |
parent | cxgb4: Use netif_set_real_num_{rx,tx}_queues() (diff) | |
download | linux-003ab6742a31662eb808f01273126830612cbda1.tar.xz linux-003ab6742a31662eb808f01273126830612cbda1.zip |
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')
-rw-r--r-- | drivers/net/cxgb4vf/cxgb4vf_main.c | 5 |
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) /* * Note that this interface is up and start everything up ... */ - 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; set_bit(pi->port_id, &adapter->open_device_map); link_start(dev); netif_tx_start_all_queues(dev); |