aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/sfc/efx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 38a55e9e89e4..796c47e03f65 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1319,8 +1319,20 @@ static void efx_remove_interrupts(struct efx_nic *efx)
1319 1319
1320static void efx_set_channels(struct efx_nic *efx) 1320static void efx_set_channels(struct efx_nic *efx)
1321{ 1321{
1322 struct efx_channel *channel;
1323 struct efx_tx_queue *tx_queue;
1324
1322 efx->tx_channel_offset = 1325 efx->tx_channel_offset =
1323 separate_tx_channels ? efx->n_channels - efx->n_tx_channels : 0; 1326 separate_tx_channels ? efx->n_channels - efx->n_tx_channels : 0;
1327
1328 /* We need to adjust the TX queue numbers if we have separate
1329 * RX-only and TX-only channels.
1330 */
1331 efx_for_each_channel(channel, efx) {
1332 efx_for_each_channel_tx_queue(tx_queue, channel)
1333 tx_queue->queue -= (efx->tx_channel_offset *
1334 EFX_TXQ_TYPES);
1335 }
1324} 1336}
1325 1337
1326static int efx_probe_nic(struct efx_nic *efx) 1338static int efx_probe_nic(struct efx_nic *efx)