]> www.infradead.org Git - users/jedix/linux-maple.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)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:30 +0000 (14:28 -0700)
commit7be735e294dd046a3c34081eea0aca0f6aaf97a7
tree1ab2e53629f6583de5981746b602be1ae7a972eb
parent2e0cd73c9583179941f0bd592ba80d42b4887c1d
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>
(cherry picked from commit 3f544d2a4d5c2d817cfee9e6302fc2909aaef155)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_ptp.c