]> git.baikalelectronics.ru Git - kernel.git/commit
e1000/e1000e/igb/ixgb: don't txhang after link down
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 7 May 2009 11:07:35 +0000 (11:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2009 21:52:32 +0000 (14:52 -0700)
commit2724fb43d051d8e7feeb3e0f96d533f8179b6dd9
tree80a5a2f555285a45c8e38f409aa996953f60fee6
parent2354733f9c58c49fe9a8eaad7a8ca38fac91fa9a
e1000/e1000e/igb/ixgb: don't txhang after link down

after the recent changes to wired drivers to use only
netif_carrier_off the driver can have outstanding tx work to
complete that will never complete once link is down.  Since the
intel hardware will hold this tx work forever, the driver
notices a tx timeout condition internally and might try
to instigate printk and reset of the part with a
netif_stop_queue, which doesn't work because link is down.

Don't bother arming to tx hang detection when link is down.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c
drivers/net/igb/igb_main.c
drivers/net/ixgb/ixgb_main.c