aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2011-02-02 05:19:55 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-02-08 04:10:17 -0500
commit463342741222c79469303cdab8ce99c8bc2d80e8 (patch)
tree7035f10116ca4aeafa1ced081110e3ed727a6478 /drivers
parent429a01a70f301baf0c8fc780f891a18c296d5e24 (diff)
e1000e: tx_timeout should not increment for non-hang events
Currently the driver increments the tx_timeout counter (an error counter) when simply resetting the part with outstanding transmit work pending. This is an unnecessary count of an error, when all we should be doing is just resetting the part and discarding the transmits. With this change the only increment of tx_timeout is when the stack calls the watchdog reset function due to a true Tx timeout. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Reviewed-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000e/netdev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 1c18f26b0812..3065870cf2a7 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4309,7 +4309,6 @@ link_up:
4309 * to get done, so reset controller to flush Tx. 4309 * to get done, so reset controller to flush Tx.
4310 * (Do the reset outside of interrupt context). 4310 * (Do the reset outside of interrupt context).
4311 */ 4311 */
4312 adapter->tx_timeout_count++;
4313 schedule_work(&adapter->reset_task); 4312 schedule_work(&adapter->reset_task);
4314 /* return immediately since reset is imminent */ 4313 /* return immediately since reset is imminent */
4315 return; 4314 return;