[PATCH v3 net-next 8/8] net: dsa: netc: add PTP one-step timestamping support

Jakub Kicinski kuba at kernel.org
Fri Sep 4 17:52:35 PDT 2026


On Mon, 31 Aug 2026 16:23:35 +0800 wei.fang at oss.nxp.com wrote:
> The NETC switch supports one-step TX timestamping for PTP Sync frames.
> When transmitting a Sync frame, the driver reads the current PTP time
> and writes it into the frame's originTimestamp field, and inserts a
> To_Port subtype 1 tag carrying the low 30 bits of that same PTP time.
> As the frame leaves the wire, the MAC captures the SFD transmit time
> and derives the residence time from the timestamp in the tag. It then
> reads the correction field at the offset given by
> PM_SINGLE_STEP[OFFSET], adds the residence time to it, and writes the
> result back.

Please spend more time on this code, especially this patch.
This really looks like clumsy slop, some DSA expert will
have to review it before it gets merged.



More information about the linux-arm-kernel mailing list