]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/net/ethernet/sfc/efx_channels.c
sfc: fix TX channel offset when using legacy interrupts
[linux-stable] / drivers / net / ethernet / sfc / efx_channels.c
index 032b8c0bd78890d6de890fa2cf1fa9405c56ba9f..5b4d661ab98679d25aa58fd061d642674e1db309 100644 (file)
@@ -319,7 +319,7 @@ int efx_probe_interrupts(struct efx_nic *efx)
                efx->n_channels = 1 + (efx_separate_tx_channels ? 1 : 0);
                efx->n_rx_channels = 1;
                efx->n_tx_channels = 1;
-               efx->tx_channel_offset = 1;
+               efx->tx_channel_offset = efx_separate_tx_channels ? 1 : 0;
                efx->n_xdp_channels = 0;
                efx->xdp_channel_offset = efx->n_channels;
                efx->legacy_irq = efx->pci_dev->irq;