]> 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)
commit626714792ffc2348f539b972d4e72bf85b10b7ea
treee77484b0df8a584939a8df9f613008714b518efd
parenta5030f527a4450999ef94d08110c90c3499a3e37
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