aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000
diff options
context:
space:
mode:
authorMalli Chilakala <mallikarjuna.chilakala@intel.com>2005-04-28 22:43:28 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-05-12 20:48:54 -0400
commitf0d11ed0b0650d2f93f56f65167c10a577c16c88 (patch)
tree323348d8a7a272ea33be40168cee46c0f1bc13a8 /drivers/net/e1000
parentf1d2e4905eed4b13c3ba56ac6d30c283be996963 (diff)
[PATCH] e1000: Modified e1000_clean: exit poll
Modified e1000_clean:: exit poll if no Tx and work_done == 0 Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com> Signed-off-by: Ganesh Venkatesan <ganesh.venkatesan@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com> diff -up net-drivers-2.6/drivers/net/e1000/e1000_main.c net-drivers-2.6/drivers/net/e1000.new/e1000_main.c
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r--drivers/net/e1000/e1000_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 0fec670e51ef..4cdf371961eb 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2368,9 +2368,8 @@ e1000_clean(struct net_device *netdev, int *budget)
2368 *budget -= work_done; 2368 *budget -= work_done;
2369 netdev->quota -= work_done; 2369 netdev->quota -= work_done;
2370 2370
2371 /* if no Tx and not enough Rx work done, exit the polling mode */ 2371 /* If no Tx and no Rx work done, exit the polling mode */
2372 if((!tx_cleaned && (work_done < work_to_do)) || 2372 if ((!tx_cleaned && (work_done == 0)) || !netif_running(netdev)) {
2373 !netif_running(netdev)) {
2374 netif_rx_complete(netdev); 2373 netif_rx_complete(netdev);
2375 e1000_irq_enable(adapter); 2374 e1000_irq_enable(adapter);
2376 return 0; 2375 return 0;