netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net 0/5] Fix broken PTP over IP on Ocelot switches
@ 2021-11-26 17:28 Vladimir Oltean
  2021-11-26 17:28 ` [PATCH v2 net 1/5] net: mscc: ocelot: don't downgrade timestamping RX filters in SIOCSHWTSTAMP Vladimir Oltean
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Vladimir Oltean @ 2021-11-26 17:28 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

Changes in v2: added patch 5, added Richard's ack for the whole series
sans patch 5 which is new.

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 (5):
  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
  net: mscc: ocelot: correctly report the timestamping RX filters in
    ethtool

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

-- 
2.25.1


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

end of thread, other threads:[~2021-11-26 20:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-26 17:28 [PATCH v2 net 0/5] Fix broken PTP over IP on Ocelot switches Vladimir Oltean
2021-11-26 17:28 ` [PATCH v2 net 1/5] net: mscc: ocelot: don't downgrade timestamping RX filters in SIOCSHWTSTAMP Vladimir Oltean
2021-11-26 17:28 ` [PATCH v2 net 2/5] net: mscc: ocelot: create a function that replaces an existing VCAP filter Vladimir Oltean
2021-11-26 17:28 ` [PATCH v2 net 3/5] net: ptp: add a definition for the UDP port for IEEE 1588 general messages Vladimir Oltean
2021-11-26 17:28 ` [PATCH v2 net 4/5] net: mscc: ocelot: set up traps for PTP packets Vladimir Oltean
2021-11-26 17:28 ` [PATCH v2 net 5/5] net: mscc: ocelot: correctly report the timestamping RX filters in ethtool Vladimir Oltean
2021-11-26 19:50 ` [PATCH v2 net 0/5] Fix broken PTP over IP on Ocelot switches patchwork-bot+netdevbpf

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).