]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: tx_timeout should not increment for non-hang events
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 2 Feb 2011 10:19:55 +0000 (10:19 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 8 Feb 2011 09:10:17 +0000 (01:10 -0800)
commitc720c240b2206177ade37e37d8072f057c215485
tree7035f10116ca4aeafa1ced081110e3ed727a6478
parent120239ec583661faa6af1aaae94930a31e156bd9
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>
drivers/net/e1000e/netdev.c