]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix not considering the TX delay for timestamps
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Tue, 18 Aug 2020 23:40:02 +0000 (16:40 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Sep 2020 22:06:24 +0000 (15:06 -0700)
commit2528849d264eb1b9f4d6e84c6c0a52b1ce8e6694
tree41b1c27ab4231ba2710bef63cb200c90d51b48ed
parent8de641fad768d61bbc600f564fdeca3eeba272fc
igc: Fix not considering the TX delay for timestamps

When timestamping a packet there's a delay between the start of the
packet and the point where the hardware actually captures the
timestamp. This difference needs to be considered if we want accurate
timestamps.

This was done on the RX side, but not on the TX side.

Fixes: b2d8d911587e ("igc: Add support for TX timestamping")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_ptp.c