]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19bc0818cfe456755f7025920957e92d2220ee12
treee0fff209136de8a5af800b4486a659f9bacb3b73
parent4230ccc2d10975c4b40a455809db79435116cc55
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