Thread (7 messages) flat view 7 messages, 2 authors, 2021-11-26
STALE1730d LANDED

Revision v2 of 2 in this series; landed in mainline as 32c54497545e on 2021-11-26.

Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH v2 net 0/5] Fix broken PTP over IP on Ocelot switches

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2021-11-26 17:31:05

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help