From: David S. Miller Date: Tue, 8 Jan 2008 04:51:29 +0000 (-0800) Subject: [NETXEN]: Fix ->poll() done logic. X-Git-Tag: v2.6.24-rc8~54^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1706287f6eb58726a9a0e5cbbde87f49757615e3;p=linux-2.6-omap-h63xx.git [NETXEN]: Fix ->poll() done logic. If work_done >= budget we should always elide the NAPI completion. Signed-off-by: David S. Miller --- diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index a80f0cd6b52..454226f7baa 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)