mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 17:28:56 +00:00
cxgb3: 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
31b600b5fc
commit
19221e75da
@ -1399,7 +1399,10 @@ static int cxgb_open(struct net_device *dev)
|
||||
"Could not initialize offload capabilities\n");
|
||||
}
|
||||
|
||||
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;
|
||||
link_start(dev);
|
||||
t3_port_intr_enable(adapter, pi->port_id);
|
||||
netif_tx_start_all_queues(dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user