]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26d16dd98d8c6f4d2154084387912c07c83fb4d2
tree612050837d31b533a79db98679ccd6aaac7e028d
parent0f39b690b5a47e1a9101022d1c6f4ab63c7283e4
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