]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: extract enetc_update_ptp_sync_msg() to handle PTP Sync packets
authorWei Fang <wei.fang@nxp.com>
Fri, 29 Aug 2025 05:06:11 +0000 (13:06 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Sep 2025 11:13:34 +0000 (13:13 +0200)
commit27dd0eca934763cb8b813cc13a86900302470cc7
tree6ba7bb2a2cf8253568be31fac20f7b144a93af75
parent19669a57d7a04d2581dc75f6b452ee2a59936942
net: enetc: extract enetc_update_ptp_sync_msg() to handle PTP Sync packets

Move PTP Sync packet processing from enetc_map_tx_buffs() to a new helper
function enetc_update_ptp_sync_msg() to simplify the original function.
Prepare for upcoming ENETC v4 one-step support. There is no functional
change. It is worth mentioning that ENETC_TXBD_TSTAMP is added to replace
0x3fffffff.

Prepare for upcoming ENETC v4 one-step support.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250829050615.1247468-11-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc_hw.h