diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 10:25:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 07:09:52 +0200 |
commit | a020ed4bb88356fea9e24ffcfd9692a835a3f122 (patch) | |
tree | 336007a325be5a8743d2f8248820a6d73efb2d6e /drivers/net | |
parent | cxgb3: Use netif_set_real_num_{rx,tx}_queues() (diff) | |
download | linux-a020ed4bb88356fea9e24ffcfd9692a835a3f122.tar.xz linux-a020ed4bb88356fea9e24ffcfd9692a835a3f122.zip |
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')
-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) return err; } - 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; err = link_start(dev); if (!err) netif_tx_start_all_queues(dev); |