e1000e: add timeout for TX HW time stamping work
authorJakub Kicinski <kubakici@wp.pl>
Sat, 15 Mar 2014 14:55:00 +0000 (14:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 28 Mar 2014 13:54:01 +0000 (06:54 -0700)
commit59c871c5f0540c974db85eaa77f518de26940c1f
tree0dfcd92ddb191648b8cc2578ddade2e5dbdd7b92
parent13c2884f155bc524c5e94482216030de480fea60
e1000e: add timeout for TX HW time stamping work

Hardware may fail to report time stamp e.g.:
 - when hardware time stamping is not enabled
 - when time stamp is requested shortly after ifup

Timeout time stamp reading work to prevent it from
scheduling itself indefinitely. Report timeout events
via system log and device stats.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/ethtool.c
drivers/net/ethernet/intel/e1000e/netdev.c