aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-02-10 18:01:48 -0500
committerBen Hutchings <bhutchings@solarflare.com>2012-02-15 19:25:06 -0500
commit9d9a6973a890c5b2258e717e4aae716720e60fcb (patch)
treeaed541bf01d9b53f419d5491e1174d20d73d22fe
parent9f2cb71c2b0ce33c472856c0feec2883fa0d9cd1 (diff)
sfc: Use proper function to test for RX channel in efx_poll()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r--drivers/net/ethernet/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index ccfb43c9968d..eda2272bc4c0 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -279,7 +279,7 @@ static int efx_poll(struct napi_struct *napi, int budget)
279 spent = efx_process_channel(channel, budget); 279 spent = efx_process_channel(channel, budget);
280 280
281 if (spent < budget) { 281 if (spent < budget) {
282 if (channel->channel < efx->n_rx_channels && 282 if (efx_channel_has_rx_queue(channel) &&
283 efx->irq_rx_adaptive && 283 efx->irq_rx_adaptive &&
284 unlikely(++channel->irq_count == 1000)) { 284 unlikely(++channel->irq_count == 1000)) {
285 if (unlikely(channel->irq_mod_score < 285 if (unlikely(channel->irq_mod_score <