Skip to contentSkip to conversation

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

PATCH In review David Miller 1 participant 1 message Jan 8, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/7 : [NETXEN]: Fix ->poll() done logic.

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

If work_done >= budget we should always elide the NAPI completion.

---
 drivers/net/netxen/netxen_nic_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/netxen/netxen_nic_main.c +1 -1
index a80f0cd..454226f 100644
@@ -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)
Signature · 1 line
1.5.4.rc2.38.gd6da3