]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Add timeout for PTP Tx work item
authorMatthew Vick <matthew.vick@intel.com>
Thu, 13 Dec 2012 07:20:34 +0000 (07:20 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 18 Jan 2013 12:56:11 +0000 (04:56 -0800)
commit8b3d20df693a0f63b7c92aa23c00d675bfe4b9d2
tree5f9ca421ac948de9a6119870d7e2f7a4867b1132
parent8d077d9c80b2faacd6787f6b62f7b622cd0d653d
igb: Add timeout for PTP Tx work item

When transmitting a packet that must return a Tx timestamp, a work item
gets scheduled to poll for the Tx timestamp being completed in hardware.
Add a timeout on this work item of 15 seconds from when the driver gets the
skb, after which it will stop polling. Report via stats and system log if
this occurs.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Acked-by: Jacob Keller <Jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_ethtool.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igb/igb_ptp.c