Commit 1706287f authored by David S. Miller's avatar David S. Miller

[NETXEN]: Fix ->poll() done logic.

If work_done >= budget we should always elide the NAPI
completion.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5cdfed54
...@@ -1321,7 +1321,7 @@ static int netxen_nic_poll(struct napi_struct *napi, int budget) ...@@ -1321,7 +1321,7 @@ static int netxen_nic_poll(struct napi_struct *napi, int budget)
budget / MAX_RCV_CTX); budget / MAX_RCV_CTX);
} }
if (work_done >= budget && netxen_nic_rx_has_work(adapter) != 0) if (work_done >= budget)
done = 0; done = 0;
if (netxen_process_cmd_ring((unsigned long)adapter) == 0) if (netxen_process_cmd_ring((unsigned long)adapter) == 0)
......
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