[NETXEN]: Fix ->poll() done logic.
authorDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2008 04:51:29 +0000 (20:51 -0800)
committerDavid 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

index a80f0cd6b528878fcf55900a7967305838242289..454226f7baa86ad6a022b1eae1a941553d78a7e6 100644 (file)
@@ -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)