OSDN Git Service

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)
commit4406e977a4a1e997818b6d77c3218ef8d15b2abf
tree41b1c27ab4231ba2710bef63cb200c90d51b48ed
parentf03369b9bfab8e23ac28ca7ab7e6631c374b7cbe
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: 2c344ae24501 ("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