Commit 9d9a6973 authored by Ben Hutchings's avatar Ben Hutchings

sfc: Use proper function to test for RX channel in efx_poll()

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent 9f2cb71c
......@@ -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 <
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment