diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 04:31:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 01:09:56 -0400 |
commit | c4f4adc7b7e03f9c0bfc81fccc8ad85d06dc8d88 (patch) | |
tree | b6465947cac2f944f230bac1f48d5f751055dbc3 | |
parent | e2209ba35aa7050fced05bf9c4244562fcaebd63 (diff) |
sfc: 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>
-rw-r--r-- | drivers/net/sfc/efx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
1315 | efx->rx_indir_table[i] = i % efx->n_rx_channels; | 1315 | efx->rx_indir_table[i] = i % efx->n_rx_channels; |
1316 | 1316 | ||
1317 | efx_set_channels(efx); | 1317 | efx_set_channels(efx); |
1318 | efx->net_dev->real_num_tx_queues = efx->n_tx_channels; | 1318 | netif_set_real_num_tx_queues(efx->net_dev, efx->n_tx_channels); |
1319 | netif_set_real_num_rx_queues(efx->net_dev, efx->n_rx_channels); | ||
1319 | 1320 | ||
1320 | /* Initialise the interrupt moderation settings */ | 1321 | /* Initialise the interrupt moderation settings */ |
1321 | efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true); | 1322 | efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, true); |