mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
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>
This commit is contained in:
parent
a020ed4bb8
commit
003ab6742a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user