sfc: Correct efx_for_each_possible_channel_tx_queue() to skip non-TX channels
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 23 Feb 2012 00:45:50 +0000 (00:45 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 23 Feb 2012 00:45:50 +0000 (00:45 +0000)
commit73e0026fb2bee4f2ca85c702040e143ec504eaa6
tree612050837d31b533a79db98679ccd6aaac7e028d
parent2d0cc56da39d62e141d4a60e3ac96522c52de4b1
sfc: Correct efx_for_each_possible_channel_tx_queue() to skip non-TX channels

efx_for_each_possible_channel_tx_queue() should do nothing for RX-only
or extra channels.  The current definition results in allocating
additional unused hardware TX queues when using the mqprio qdisc and
either separate_tx_channels or SR-IOV.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h