diff options
| author | Ziyi Guo <n7l8m4@u.northwestern.edu> | 2026-02-08 22:56:00 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-02-12 19:01:15 -0800 |
| commit | 29372f07f7969a2f0490793226ecf6c8c6bde0fa (patch) | |
| tree | 828dfee6ed5c440927a41206790144305f67220a /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 6c28aa8dfdf24f554d4c5d4ff7d723a95360d94a (diff) | |
net: mscc: ocelot: extract ocelot_xmit_timestamp() helper
Extract the PTP timestamp handling logic from ocelot_port_xmit() into a
separate ocelot_xmit_timestamp() helper function. This is a pure
refactor with no behavioral change.
The helper returns false if the skb was consumed (freed) due to a
timestamp request failure, and true if the caller should continue with
frame injection. The rew_op value is returned via pointer.
This prepares for splitting ocelot_port_xmit() into separate FDMA and
register injection paths in a subsequent patch.
Signed-off-by: Ziyi Guo <n7l8m4@u.northwestern.edu>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260208225602.1339325-2-n7l8m4@u.northwestern.edu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
