Merge branch 'fix-ptp-received-on-wrong-port-with-bridged-sja1105-dsa'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 29 Jun 2023 12:41:28 +0000 (14:41 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Jun 2023 12:41:28 +0000 (14:41 +0200)
commit5998bb7642bfc984b2305dd4e37e085a2f654477
tree71af8a29080c5b6dff822a95ac42f43e2115a711
parente999c897cd626c05f5d68ab02028a210ceca3545
parentc1ae02d876898b1b8ca1e12c6f84d7b406263800
Merge branch 'fix-ptp-received-on-wrong-port-with-bridged-sja1105-dsa'

Vladimir Oltean says:

====================
Fix PTP received on wrong port with bridged SJA1105 DSA

Since the changes were made to tag_8021q to support imprecise RX for
bridged ports, the tag_sja1105 driver still prefers the source port
information deduced from the VLAN headers for link-local traffic, even
though the switch can theoretically do better and report the precise
source port.

The problem is that the tagger doesn't know when to trust one source of
information over another, because the INCL_SRCPT option (to "tag" link
local frames) is sometimes enabled and sometimes it isn't.

The first patch makes the switch provide the hardware tag for link local
traffic under all circumstances, and the second patch makes the tagger
always use that hardware tag as primary source of information for link
local packets.
====================

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