Commit c4f4adc7 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

sfc: 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 e2209ba3
...@@ -1315,7 +1315,8 @@ static int efx_probe_nic(struct efx_nic *efx) ...@@ -1315,7 +1315,8 @@ static int efx_probe_nic(struct efx_nic *efx)
efx->rx_indir_table[i] = i % efx->n_rx_channels; efx->rx_indir_table[i] = i % efx->n_rx_channels;
efx_set_channels(efx); efx_set_channels(efx);
efx->net_dev->real_num_tx_queues = efx->n_tx_channels; netif_set_real_num_tx_queues(efx->net_dev, efx->n_tx_channels);
netif_set_real_num_rx_queues(efx->net_dev, efx->n_rx_channels);
/* Initialise the interrupt moderation settings */ /* Initialise the interrupt moderation settings */
efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true); efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true);
......
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