• Ben Hutchings's avatar
    sfc: Refactor channel and queue lookup and iteration · f7d12cdc
    Ben Hutchings authored
    In preparation for changes to the way channels and queue structures
    are allocated, revise the macros and functions used to look up and
    iterator over them.
    
    - Replace efx_for_each_tx_queue() with iteration over channels then TX
      queues
    - Replace efx_for_each_rx_queue() with iteration over channels then RX
      queues (with one exception, shortly to be removed)
    - Introduce efx_get_{channel,rx_queue,tx_queue}() functions to look up
      channels and queues by index
    - Introduce efx_channel_get_{rx,tx}_queue() functions to look up a
      channel's queues
    Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f7d12cdc
nic.c 57.6 KB