aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/rx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-02-07 23:49:52 +0000
committerBen Hutchings <bhutchings@solarflare.com>2012-02-16 00:15:03 +0000
commit2ae75dac301b0f255f79cd84ac70c619e55d7694 (patch)
treee9e6f63e02d23e0d76fa2a8fd092c50454d25ecc /drivers/net/ethernet/sfc/rx.c
parentsfc: Generalise driver event generation (diff)
downloadlinux-dev-2ae75dac301b0f255f79cd84ac70c619e55d7694.tar.xz
linux-dev-2ae75dac301b0f255f79cd84ac70c619e55d7694.zip
sfc: Generate RX fill events based on RX queues, not channels
This makes it harder to accidentally send such events to TX-only channels. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/sfc/rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c
index 1dfda5e27919..76fb521a2fa2 100644
--- a/drivers/net/ethernet/sfc/rx.c
+++ b/drivers/net/ethernet/sfc/rx.c
@@ -405,10 +405,9 @@ void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue)
void efx_rx_slow_fill(unsigned long context)
{
struct efx_rx_queue *rx_queue = (struct efx_rx_queue *)context;
- struct efx_channel *channel = efx_rx_queue_channel(rx_queue);
/* Post an event to cause NAPI to run and refill the queue */
- efx_nic_generate_fill_event(channel);
+ efx_nic_generate_fill_event(rx_queue);
++rx_queue->slow_fill_count;
}