]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf49c411a8aaded1d351c8eb14b87963bf5707341
treee77484b0df8a584939a8df9f613008714b518efd
parente8b1596814305497d8adbef1b40cad47241e9bd1
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