Thread (13 messages) 13 messages, 3 authors, 1d ago

Re: [PATCH net-next v2 0/2] net: dsa: mv88e6xxx: various hwstamp fixes

From: Luke Howard <hidden>
Date: 2026-07-17 07:48:13
Also in: lkml

---
Luke Howard (2):
   net: dsa: mv88e6xxx: embedded PTP timestamp support
This can be improved: there is no need to extract the embedded timestamp in the PTP worker as it can be done directly in mv88e6xxx_port_rxtstamp() (provided tstamp_{cc,tc} are protected by a spinlock). DSA can deliver the frame normally, similar to ocelot_ptp_rx_timestamp().

Deferring to the worker can reorder frames such that PTP general messages arrive before the timestamped event messages, which confuses some other PTP implementations such as gptp2d [1].

This optimisation of course only works for ArrTSMode because there is no MDIO read required.

Luke

[1] https://github.com/xl4-shiro/excelfore-gptp
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help