Commit f0d11ed0 authored by Malli Chilakala's avatar Malli Chilakala Committed by Jeff Garzik

[PATCH] e1000: Modified e1000_clean: exit poll

Modified e1000_clean:: exit poll if no Tx and work_done == 0
Signed-off-by: default avatarMallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: default avatarGanesh Venkatesan <ganesh.venkatesan@intel.com>
Signed-off-by: default avatarJohn 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
parent f1d2e490
...@@ -2368,9 +2368,8 @@ e1000_clean(struct net_device *netdev, int *budget) ...@@ -2368,9 +2368,8 @@ e1000_clean(struct net_device *netdev, int *budget)
*budget -= work_done; *budget -= work_done;
netdev->quota -= work_done; netdev->quota -= work_done;
/* if no Tx and not enough Rx work done, exit the polling mode */ /* If no Tx and no Rx work done, exit the polling mode */
if((!tx_cleaned && (work_done < work_to_do)) || if ((!tx_cleaned && (work_done == 0)) || !netif_running(netdev)) {
!netif_running(netdev)) {
netif_rx_complete(netdev); netif_rx_complete(netdev);
e1000_irq_enable(adapter); e1000_irq_enable(adapter);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment