From: Ben Hutchings Date: Mon, 27 Sep 2010 08:31:07 +0000 (+0000) Subject: sfc: Use netif_set_real_num_{rx,tx}_queues() X-Git-Tag: MMI-PSA29.97-13-9~21994^2~326 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4f4adc7b7e03f9c0bfc81fccc8ad85d06dc8d88;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sfc: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 5be71f49a205..fa6e0207de17 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -1315,7 +1315,8 @@ static int efx_probe_nic(struct efx_nic *efx) efx->rx_indir_table[i] = i % efx->n_rx_channels; 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 */ efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true);