]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sfc: Use netif_set_real_num_{rx,tx}_queues()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 27 Sep 2010 08:31:07 +0000 (08:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 05:09:56 +0000 (22:09 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c

index 5be71f49a205a773164a36f9bab8f42804d84228..fa6e0207de17747785b5f610d627481d95469a69 100644 (file)
@@ -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);