diff options
author | David S. Miller <davem@davemloft.net> | 2008-01-07 23:51:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-09 02:30:11 -0500 |
commit | 1706287f6eb58726a9a0e5cbbde87f49757615e3 (patch) | |
tree | bd7e73214e5f8817623873624aad29a33e131e99 /drivers/net/netxen | |
parent | 5cdfed54e7200dde2e846e2ef153d1694ce44875 (diff) |
[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>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index a80f0cd6b528..454226f7baa8 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1321,7 +1321,7 @@ static int netxen_nic_poll(struct napi_struct *napi, int budget) | |||
1321 | budget / MAX_RCV_CTX); | 1321 | budget / MAX_RCV_CTX); |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | if (work_done >= budget && netxen_nic_rx_has_work(adapter) != 0) | 1324 | if (work_done >= budget) |
1325 | done = 0; | 1325 | done = 0; |
1326 | 1326 | ||
1327 | if (netxen_process_cmd_ring((unsigned long)adapter) == 0) | 1327 | if (netxen_process_cmd_ring((unsigned long)adapter) == 0) |