]> git.baikalelectronics.ru Git - 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)
commit9afe9e4f9e6903fa0bfb897c816aacc6b591079c
treeab94c3e81e355c8df47102ede2d5d0aa02738945
parent2c73b5651001ffbf75615b74a8f6850a58aed7c2
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