linux/drivers/net/sfc
Ben Hutchings f7d12cdcbb 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>
2010-09-10 12:27:32 -07:00
..
bitfield.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
efx.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
efx.h sfc: Remove declarations of functions that no longer exist 2010-09-10 12:27:30 -07:00
enum.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
ethtool.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
falcon.c sfc: Use Toeplitz IPv4 hash for RSS and hash insertion 2010-06-25 21:03:32 -07:00
falcon_boards.c sfc: Log clearer error messages for hardware monitor 2010-06-25 21:03:32 -07:00
falcon_gmac.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
falcon_xmac.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
io.h sfc: Implement message level control 2010-06-24 22:13:22 -07:00
Kconfig sfc: Add support for SFC9000 family (2) 2009-11-29 17:23:57 -08:00
mac.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
Makefile sfc: Add support for SFC9000 family (2) 2009-11-29 17:23:57 -08:00
mcdi.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi.h sfc: Implement NVRAM selftest for SFC9000 family 2010-02-03 19:12:45 -08:00
mcdi_mac.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi_pcol.h sfc: Update MCDI protocol definitions 2010-04-28 12:44:37 -07:00
mcdi_phy.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mdio_10g.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mdio_10g.h sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mtd.c sfc: Log MTD errors using partition name, not just net device name 2010-06-24 22:13:22 -07:00
net_driver.h sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
nic.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
nic.h sfc: Add support for RX flow hash control 2010-06-30 14:10:04 -07:00
phy.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
qt202x_phy.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
regs.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
rx.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
selftest.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
selftest.h sfc: Create multiple TX queues 2010-04-28 12:44:44 -07:00
siena.c sfc: Use MCDI RX_BAD_FCS_PKTS count as MAC rx_bad count 2010-09-10 12:27:29 -07:00
spi.h sfc: Extend MTD driver for use with new NICs 2009-11-29 17:23:54 -08:00
tenxpress.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
tx.c sfc: Refactor channel and queue lookup and iteration 2010-09-10 12:27:32 -07:00
workarounds.h sfc: Workaround flush failures on Falcon B0 2010-06-02 02:21:06 -07:00