Commit a020ed4b authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

cxgb4: Use netif_set_real_num_{rx,tx}_queues()

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 19221e75
...@@ -2763,7 +2763,10 @@ static int cxgb_open(struct net_device *dev) ...@@ -2763,7 +2763,10 @@ static int cxgb_open(struct net_device *dev)
return err; 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); err = link_start(dev);
if (!err) if (!err)
netif_tx_start_all_queues(dev); netif_tx_start_all_queues(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment