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)
commit32c54497545e997a0a2ec954fd8ca69806bcb28b
tree54bf5a5fb8297bd619577daffa8f27ff8a1833dc
parentb32e521eb5342dc2b1ab60a6aee15b534b2f1430
parentc49a35eedfef08bffd46b53c25dbf9d6016a86ff
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>