diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 08:25:57 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-27 22:09:52 -0700 |
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) 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); |