Thread (17 messages) flat view 17 messages, 4 authors, 2021-12-03

Re: [PATCH net-next 0/4] Fix broken PTP over IP on Ocelot switches

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2021-11-26 09:57:04

On Thu, Nov 25, 2021 at 07:01:01PM -0800, Jakub Kicinski wrote:
On Thu, 25 Nov 2021 23:45:21 +0000 Vladimir Oltean wrote:
quoted
On Fri, Nov 26, 2021 at 01:21:14AM +0200, Vladimir Oltean wrote:
quoted
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).
I don't know why I targeted these patches to "net-next". Habit I guess.
Nonetheless, they apply equally well to "net", can they be considered
for merging there without me resending?
Only patch 1 looks like a fix, tho? Patch 4 seems to fall into
the "this never worked and doesn't cause a crash" category.

I'm hoping to send a PR tomorrow, so if you resend quickly it
will be in net-next soon.
It's true that a lot of work went into ocelot_vcap.c in order to make it
safely usable for traps outside of the tc-flower offload, and I
understand that you need to draw the line somewhere. But on the other
hand, this is fixing very real problems that are bothering real users.
Patch 1, not so much, it popped up as a result of discussions and
looking at code. None of the bugs fixed here cause a crash, it's just
that things don't work as expected. Technically, a user could still set
up the appropriate traps via tc-flower and PTP would work, but they'd
have to know that they need to, in the first place. So I would still be
very appreciative if all 4 patches would be considered for inclusion
into "net". I'm not expecting them to be backported very far, of course,
but as long as they reach at least v5.15 I'm happy.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help