sfc: Abstract channel and index lookup for RX queues

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ben Hutchings
2010-09-10 06:41:36 +00:00
committed by David S. Miller
parent 58758aa505
commit ba1e8a35b7
3 changed files with 47 additions and 33 deletions

View File

@@ -943,6 +943,17 @@ struct efx_nic_type {
continue; \
else
static inline struct efx_channel *
efx_rx_queue_channel(struct efx_rx_queue *rx_queue)
{
return rx_queue->channel;
}
static inline int efx_rx_queue_index(struct efx_rx_queue *rx_queue)
{
return rx_queue->queue;
}
/* Returns a pointer to the specified receive buffer in the RX
* descriptor queue.
*/