]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
sfc: Refactor channel and queue lookup and iteration
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 10 Sep 2010 06:41:47 +0000 (06:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Sep 2010 19:27:32 +0000 (12:27 -0700)
commitf7d12cdcbb28207b3bdcf4affbf3935e4c015d03
treeab94c3e81e355c8df47102ede2d5d0aa02738945
parentba1e8a35b77f3bc7d109696dbd2a7fd5af208b62
sfc: Refactor channel and queue lookup and iteration

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: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c
drivers/net/sfc/ethtool.c
drivers/net/sfc/net_driver.h
drivers/net/sfc/nic.c
drivers/net/sfc/rx.c
drivers/net/sfc/selftest.c
drivers/net/sfc/tx.c