netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/7]: [NETXEN]: Fix ->poll() done logic.
@ 2008-01-08  5:39 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2008-01-08  5:39 UTC (permalink / raw)
  To: netdev


[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>
---
 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 a80f0cd..454226f 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)
 						     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)
-- 
1.5.4.rc2.38.gd6da3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-08  5:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08  5:39 [PATCH 4/7]: [NETXEN]: Fix ->poll() done logic David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).