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

Trivial merge