]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Skip RX end-of-batch work on channels without an RX queue
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Feb 2012 23:29:16 +0000 (23:29 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Feb 2012 23:40:38 +0000 (23:40 +0000)
commit20f0e47585cbae5cc7b859468e5bf239e88c893b
tree5369dab94326cc5ef40bbba766868fc655cb1cf5
parent87495f3527d7580c3610e8c3650fb74b7d783d55
sfc: Skip RX end-of-batch work on channels without an RX queue

The code in efx_process_channel() to update the RX queue after each
batch of RX completions works out as a no-op on a TX-only channel
where the RX queue structure is set to all-zeroes, but
(1) efx_channel_get_rx_queue() will BUG() if DEBUG is defined, and
(2) it's a waste of time.

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