Commit a2589027 authored by Ben Hutchings's avatar Ben Hutchings Committed by Jeff Garzik

sfc: Make efx_for_each_channel_rx_queue() more efficient

Currently each channel can have at most one RX queue, so go straight to
that one.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 955f0a74
......@@ -853,9 +853,9 @@ struct efx_nic_type {
/* Iterate over all RX queues belonging to a channel */
#define efx_for_each_channel_rx_queue(_rx_queue, _channel) \
for (_rx_queue = &_channel->efx->rx_queue[0]; \
_rx_queue < &_channel->efx->rx_queue[EFX_MAX_RX_QUEUES]; \
_rx_queue++) \
for (_rx_queue = &_channel->efx->rx_queue[_channel->channel]; \
_rx_queue; \
_rx_queue = NULL) \
if (_rx_queue->channel != _channel) \
continue; \
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment