This is a revised patch series to ensure that the tmv_t operations are used consistently for calculations involving hardware timestamps.
The ugly hwts_to_tmv() and hwts_sw_to_tmv() wrappers from the previous patch series are gone. Instead we convert struct hw_timestamp to use tmv_t as the storage format for the timestamp(s). The patches are structured as follows: 0001-0003 prepare for the conversion to tmv_t 0004-0005 perform the conversion 0006-0007 clean up after the conversion This separation is designed to minimise the size of each individual patch, in order to maximise ease of code review. Patch 0001 temporarily introduces an overlength line, which is subsequently shortened in patch 0004. Michael Brown (7): clock: Remove open-coded conversion of struct timespec port: Treat ingressLatency and egressLatency as corrections port: Match calling convention for tmv_to_Timestamp() msg: Represent hw_timestamp "ts" field as tmv_t msg: Represent hw_timestamp "sw" field as tmv_t port: Remove unnecessary ts_to_Timestamp() wrapper port: Remove unnecessary conversions from tmv_t to int64_t clock.c | 6 ++---- clock.h | 2 +- msg.h | 7 ++++--- nsm.c | 4 ++-- port.c | 54 +++++++++++++++++++----------------------------------- sk.c | 8 ++++---- 6 files changed, 32 insertions(+), 49 deletions(-) -- 2.14.3 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel