mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
[NETXEN]: Fix ->poll() done logic.
If work_done >= budget we should always elide the NAPI completion. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5cdfed54e7
commit
1706287f6e
@ -1321,7 +1321,7 @@ static int netxen_nic_poll(struct napi_struct *napi, int budget)
|
||||
budget / MAX_RCV_CTX);
|
||||
}
|
||||
|
||||
if (work_done >= budget && netxen_nic_rx_has_work(adapter) != 0)
|
||||
if (work_done >= budget)
|
||||
done = 0;
|
||||
|
||||
if (netxen_process_cmd_ring((unsigned long)adapter) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user