diff options
author | Edward Cree <ecree@solarflare.com> | 2020-07-02 18:29:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-02 23:47:40 +0200 |
commit | 69a704962e8cab43bd62301e104c222e7d23e361 (patch) | |
tree | 596eb02058226ccd8ef3ef90a7bdc71eeebddd57 /drivers/net/ethernet/sfc/efx.c | |
parent | sfc: make tx_queues_per_channel variable at runtime (diff) | |
download | linux-69a704962e8cab43bd62301e104c222e7d23e361.tar.xz linux-69a704962e8cab43bd62301e104c222e7d23e361.zip |
sfc: commonise netif_set_real_num[tr]x_queues calls
While we're at it, also check them for failure.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 6094f59d49a7..befd253af918 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -336,9 +336,6 @@ static int efx_probe_nic(struct efx_nic *efx) sizeof(efx->rss_context.rx_hash_key)); efx_set_default_rx_indir_table(efx, &efx->rss_context); - 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 */ efx->irq_mod_step_us = DIV_ROUND_UP(efx->timer_quantum_ns, 1000); efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true, |