ptp: Request cycles for TX timestamp
authorGerhard Engleder <gerhard@engleder-embedded.com>
Fri, 6 May 2022 20:01:38 +0000 (22:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 May 2022 07:48:08 +0000 (09:48 +0200)
commit51eb7492af276b5b4d27cfa4474d40bdac7b9cf8
treee0fff209136de8a5af800b4486a659f9bacb3b73
parent42704b26b0f1d891f6cf4ebc877dbac0d17c690d
ptp: Request cycles for TX timestamp

The free running cycle counter of physical clocks called cycles shall be
used for hardware timestamps to enable synchronisation.

Introduce new flag SKBTX_HW_TSTAMP_USE_CYCLES, which signals driver to
provide a TX timestamp based on cycles if cycles are supported.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/skbuff.h
net/socket.c