Merge branch 'fix-ptp-packet-drops-with-ocelot-8021q-dsa-tag-protocol'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 29 Jun 2023 10:40:29 +0000 (12:40 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Jun 2023 10:40:30 +0000 (12:40 +0200)
commite999c897cd626c05f5d68ab02028a210ceca3545
tree05d56d6e379d136731aba8dfe3a81c42169284d4
parent3c4bb45ab29303265a8c6d7099e00c824503c586
parent2edcfcbb3c5946609be1d8875473a240b170673b
Merge branch 'fix-ptp-packet-drops-with-ocelot-8021q-dsa-tag-protocol'

Vladimir Oltean says:

====================
Fix PTP packet drops with ocelot-8021q DSA tag protocol

Changes in v2:
- Distinguish between L2 and L4 PTP packets
v1 at:
https://lore.kernel.org/netdev/20230626154003.3153076-1-vladimir.oltean@nxp.com/

Patch 3/3 fixes an issue with the ocelot/felix driver, where it would
drop PTP traffic on RX unless hardware timestamping for that packet type
was enabled.

Fixing that requires the driver to know whether it had previously
configured the hardware to timestamp PTP packets on that port. But it
cannot correctly determine that today using the existing code structure,
so patches 1/3 and 2/3 fix the control path of the code such that
ocelot->ports[port]->trap_proto faithfully reflects whether that
configuration took place.
====================

Link: https://lore.kernel.org/r/20230627163114.3561597-1-vladimir.oltean@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>