projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdfed5
)
[NETXEN]: Fix ->poll() done logic.
author
David S. Miller
<davem@davemloft.net>
Tue, 8 Jan 2008 04:51:29 +0000
(20:51 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 9 Jan 2008 07:30:11 +0000
(23:30 -0800)
If work_done >= budget we should always elide the NAPI
completion.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/netxen/netxen_nic_main.c
b/drivers/net/netxen/netxen_nic_main.c
index
a80f0cd
..
454226f
100644
(file)
--- 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)
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)