igb: adjust PTP timestamps for Tx/Rx latency
authorNathan Sullivan <nathan.sullivan@ni.com>
Tue, 3 May 2016 23:10:56 +0000 (18:10 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 May 2016 22:02:08 +0000 (15:02 -0700)
commit3f544d2a4d5c2d817cfee9e6302fc2909aaef155
treee77484b0df8a584939a8df9f613008714b518efd
parentab507c9a54ce3580e6a3829c9f4c24a13c32cbac
igb: adjust PTP timestamps for Tx/Rx latency

Table 7-62 on page 338 of the i210 datasheet lists TX and RX latencies
for the various speeds the chip supports.  To give better PTP timestamp
accuracy, adjust the timestamps by the amounts Intel gives based on
current link speed.

Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.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_ptp.c