]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'fix-broken-ptp-over-ip-on-ocelot-switches'
authorJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:38:23 +0000 (11:38 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:38:23 +0000 (11:38 -0800)
commita6e9bd8a22aaa7222450e0838164d80570762086
tree54bf5a5fb8297bd619577daffa8f27ff8a1833dc
parente1a00d2f847edc2c54bcbe0058cbb504a7ec30d5
parent7c84e659abc6669abb9854f96ac86d61b1ea923a
Merge branch 'fix-broken-ptp-over-ip-on-ocelot-switches'

Vladimir Oltean says:

====================
Fix broken PTP over IP on Ocelot switches

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

Link: https://lore.kernel.org/r/20211126172845.3149260-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>