Re: [PATCH net-next 4/4] net: mscc: ocelot: set up traps for PTP packets
From: Richard Cochran <richardcochran@gmail.com>
Date: 2021-11-26 17:27:40
On Fri, Nov 26, 2021 at 01:21:18AM +0200, Vladimir Oltean wrote:
So PTP over L2 barely works, in the sense that PTP packets reach the CPU port, but they reach it via flooding, and therefore reach lots of other unwanted destinations too. But PTP over IPv4/IPv6 does not work at all. This is because the Ocelot switch have ...
Not that the details are same, but I'd like to report that the Marvell switches (or driver or kernel) also have issues with PTP over UDP/IPv4. When configured with separate interfaces, not in a bridge, you can run ptp4l as a UDP/IPv4 Boundary Clock, and it works fine. When configured as a bridge, and running ptp4l as a UDP/IPv4 Transparent Clock, it doesn't work. It has been a while, and I don't have the HW any more, but I don't recall the exact behavior. I think the switch did not treat the Event frames as switch management frames. (BTW, running ptp4l TC over Layer-2 worked just fine with the switch configured as a bridge.) Just saying, in case somebody with such a switch would like to try and fix the driver by adding special forwarding rules for the IPv4/6 multicast addresses. Thanks, Richard