netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] Fix PTP packet drops with ocelot-8021q DSA tag protocol
@ 2023-06-26 15:40 Vladimir Oltean
  2023-06-26 15:40 ` [PATCH net 1/3] net: mscc: ocelot: don't report that RX timestamping is enabled by default Vladimir Oltean
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Vladimir Oltean @ 2023-06-26 15:40 UTC (permalink / raw)
  To: netdev
  Cc: Andrew Lunn, Florian Fainelli, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Claudiu Manoil, Alexandre Belloni,
	UNGLinuxDriver, Xiaoliang Yang, Richard Cochran, Antoine Tenart,
	linux-kernel

Patch 3/3 fixes an issue with the ocelot/felix driver, where it would
drop PTP traffic on RX unless hardware timestamping was enabled.

Fixing that requires the driver to know whether it had previously
configured the hardware to timestamp PTP packets on that port. But it
cannot correctly determine that today using the existing code structure,
so patches 1/3 and 2/3 fix the control path of the code such that
ocelot->ports[port]->ptp_rx_filter faithfully reflects whether that
configuration took place.

Vladimir Oltean (3):
  net: mscc: ocelot: don't report that RX timestamping is enabled by
    default
  net: mscc: ocelot: don't keep PTP configuration of all ports in single
    structure
  net: dsa: felix: don't drop PTP frames with tag_8021q when RX
    timestamping is disabled

 drivers/net/dsa/ocelot/felix.c         |  3 +++
 drivers/net/ethernet/mscc/ocelot.c     |  1 -
 drivers/net/ethernet/mscc/ocelot_ptp.c | 35 +++++++++++++++-----------
 include/soc/mscc/ocelot.h              |  5 ++--
 4 files changed, 25 insertions(+), 19 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-27 15:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26 15:40 [PATCH net 0/3] Fix PTP packet drops with ocelot-8021q DSA tag protocol Vladimir Oltean
2023-06-26 15:40 ` [PATCH net 1/3] net: mscc: ocelot: don't report that RX timestamping is enabled by default Vladimir Oltean
2023-06-26 15:40 ` [PATCH net 2/3] net: mscc: ocelot: don't keep PTP configuration of all ports in single structure Vladimir Oltean
2023-06-26 15:40 ` [PATCH net 3/3] net: dsa: felix: don't drop PTP frames with tag_8021q when RX timestamping is disabled Vladimir Oltean
2023-06-27 15:12   ` Vladimir Oltean
2023-06-27 15:46     ` Jakub Kicinski
2023-06-27 15:51       ` Vladimir Oltean
2023-06-27 15:53         ` Jakub Kicinski
2023-06-27 15:57           ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).