diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-02-11 03:01:48 +0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-02-16 04:25:06 +0400 |
commit | 9d9a6973a890c5b2258e717e4aae716720e60fcb (patch) | |
tree | aed541bf01d9b53f419d5491e1174d20d73d22fe /drivers/net/ethernet | |
parent | 9f2cb71c2b0ce33c472856c0feec2883fa0d9cd1 (diff) | |
download | linux-9d9a6973a890c5b2258e717e4aae716720e60fcb.tar.xz |
sfc: Use proper function to test for RX channel in efx_poll()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 2 |
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) spent = efx_process_channel(channel, budget); if (spent < budget) { - if (channel->channel < efx->n_rx_channels && + if (efx_channel_has_rx_queue(channel) && efx->irq_rx_adaptive && unlikely(++channel->irq_count == 1000)) { if (unlikely(channel->irq_mod_score < |