mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-05 21:03:14 -05:00
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>
This commit is contained in:
committed by
David S. Miller
parent
19221e75da
commit
a020ed4bb8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user