aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r--drivers/net/sfc/net_driver.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index b5649b16cd43..74e934c7e6f8 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -853,9 +853,9 @@ struct efx_nic_type {
853 853
854/* Iterate over all RX queues belonging to a channel */ 854/* Iterate over all RX queues belonging to a channel */
855#define efx_for_each_channel_rx_queue(_rx_queue, _channel) \ 855#define efx_for_each_channel_rx_queue(_rx_queue, _channel) \
856 for (_rx_queue = &_channel->efx->rx_queue[0]; \ 856 for (_rx_queue = &_channel->efx->rx_queue[_channel->channel]; \
857 _rx_queue < &_channel->efx->rx_queue[EFX_MAX_RX_QUEUES]; \ 857 _rx_queue; \
858 _rx_queue++) \ 858 _rx_queue = NULL) \
859 if (_rx_queue->channel != _channel) \ 859 if (_rx_queue->channel != _channel) \
860 continue; \ 860 continue; \
861 else 861 else