All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] Fix broken PTP over IP on Ocelot switches
@ 2021-11-25 23:21 Vladimir Oltean
  2021-11-25 23:21 ` [PATCH net-next 1/4] net: mscc: ocelot: don't downgrade timestamping RX filters in SIOCSHWTSTAMP Vladimir Oltean
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Vladimir Oltean @ 2021-11-25 23:21 UTC (permalink / raw)
  To: netdev, Po Liu
  Cc: David S. Miller, Jakub Kicinski, Claudiu Manoil,
	Alexandre Belloni, Antoine Tenart, UNGLinuxDriver, Andrew Lunn,
	Vivien Didelot, Florian Fainelli, Xiaoliang Yang, Yangbo Lu,
	Rui Sousa, Richard Cochran, Allan W . Nielsen

Po Liu reported recently that timestamping PTP over IPv4 is broken using
the felix driver on NXP LS1028A. This has been known for a while, of
course, since it has always been broken. The reason is because IP PTP
packets are currently treated as unknown IP multicast, which is not
flooded to the CPU port in the ocelot driver design, so packets don't
reach the ptp4l program.

The series solves the problem by installing packet traps per port when
the timestamping ioctl is called, depending on the RX filter selected
(L2, L4 or both).

Vladimir Oltean (4):
  net: mscc: ocelot: don't downgrade timestamping RX filters in
    SIOCSHWTSTAMP
  net: mscc: ocelot: create a function that replaces an existing VCAP
    filter
  net: ptp: add a definition for the UDP port for IEEE 1588 general
    messages
  net: mscc: ocelot: set up traps for PTP packets

 drivers/net/ethernet/mscc/ocelot.c      | 247 +++++++++++++++++++++++-
 drivers/net/ethernet/mscc/ocelot_vcap.c |  16 ++
 include/linux/ptp_classify.h            |   1 +
 include/soc/mscc/ocelot_vcap.h          |   2 +
 4 files changed, 259 insertions(+), 7 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-12-03  8:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 23:21 [PATCH net-next 0/4] Fix broken PTP over IP on Ocelot switches Vladimir Oltean
2021-11-25 23:21 ` [PATCH net-next 1/4] net: mscc: ocelot: don't downgrade timestamping RX filters in SIOCSHWTSTAMP Vladimir Oltean
2021-11-25 23:21 ` [PATCH net-next 2/4] net: mscc: ocelot: create a function that replaces an existing VCAP filter Vladimir Oltean
2021-11-25 23:21 ` [PATCH net-next 3/4] net: ptp: add a definition for the UDP port for IEEE 1588 general messages Vladimir Oltean
2021-11-25 23:21 ` [PATCH net-next 4/4] net: mscc: ocelot: set up traps for PTP packets Vladimir Oltean
2021-11-26 16:58   ` Richard Cochran
2021-11-26 17:01     ` Vladimir Oltean
2021-11-26 17:08       ` Richard Cochran
2021-11-26 17:11         ` Vladimir Oltean
2021-12-03  8:27         ` Kurt Kanzenbach
2021-11-25 23:45 ` [PATCH net-next 0/4] Fix broken PTP over IP on Ocelot switches Vladimir Oltean
2021-11-26  3:01   ` Jakub Kicinski
2021-11-26  9:55     ` Vladimir Oltean
2021-11-26 18:35       ` Jakub Kicinski
2021-11-26 19:38         ` Vladimir Oltean
2021-11-26 19:55           ` Jakub Kicinski
2021-11-26 16:44 ` Richard Cochran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.