Re: [net-next PATCH v18 0/8] net: dsa: Add Airoha AN8855 support

Christian Marangi
2025-09-17T09:40:42Z

On Wed, Sep 17, 2025 at 12:28:07PM +0300, Vladimir Oltean wrote:
> On Mon, Sep 15, 2025 at 12:45:36PM +0200, Christian Marangi wrote:
> > It's conceptually similar to mediatek switch but register and bits
> > are different. And there is massive list of register for the PCS
> > configuration.
> > Saddly for that part we have absolutely NO documentation currently.
>
> Please add in the next revision a more convincing argument for not
> reusing the mt7530 driver control flow. Regmap fields can abstract a
> lot, and the driver can select a completely different phylink_pcs for
> different hardware.
>
> I don't see in the short change log included here any mentions related
> to the mt7530, but I'm not going to search the mailing lists since Nov
> 2024 for any previous discussions about this...
>

Ok will add additional info.

But In short the FDB and VLAN part are very different. The FDB logic to
dump entry add and remove is entirely different.

And the mt7530 itself is full of unrelated function (specific to the
first revision of the mt7530 switch) so I have to move lots of code
around.

If asked I can do it but I have to also introduce lots of extra change.

> Also, let's try not to reach v20.. Please try to collect a full round of
> feedback from people who commented before when submitting a new version,
> pinging people if necessary. You want to make sure that their previous
> feedback was addressed.
>
> > TEST: lan2: Multicast IPv4 to joined group [ OK ]
> > TEST: lan2: Multicast IPv4 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: lan2: Multicast IPv4 to unknown group, promisc [ OK ]
> > TEST: lan2: Multicast IPv4 to unknown group, allmulti [ OK ]
> > TEST: lan2: Multicast IPv6 to joined group [ OK ]
> > TEST: lan2: Multicast IPv6 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: lan2: Multicast IPv6 to unknown group, promisc [ OK ]
> > TEST: lan2: Multicast IPv6 to unknown group, allmulti [ OK ]
> > TEST: lan2: 1588v2 over L2 transport, Sync [ OK ]
> > TEST: lan2: 1588v2 over L2 transport, Follow-Up [ OK ]
> > TEST: lan2: 1588v2 over L2 transport, Peer Delay Request [ OK ]
> > TEST: lan2: 1588v2 over IPv4, Sync [FAIL]
> > reception failed
> > TEST: lan2: 1588v2 over IPv4, Follow-Up [FAIL]
> > reception failed
> > TEST: lan2: 1588v2 over IPv4, Peer Delay Request [FAIL]
> > reception failed
> > TEST: lan2: 1588v2 over IPv6, Sync [FAIL]
> > reception failed
> > TEST: lan2: 1588v2 over IPv6, Follow-Up [FAIL]
> > reception failed
> > TEST: lan2: 1588v2 over IPv6, Peer Delay Request [FAIL]
> > reception failed
>
> Do you know why it won't receive PTP over IP? It seems strange, given it
> receives other IP multicast (even unregistered). Is it a hardware or a
> software drop? What port counters increment? Does it drop PTP over IP
> only on local termination, or does it also fail to forward it? What
> about the packet makes the switch drop it?
>

From what they said there isn't any support for 1588v2 (PTP) on the Switch other
than L2 (that I think they simply forward)

I can ask more info on the topic, will also check what counters
increment.

> > TEST: vlan_filtering=1 bridge: Multicast IPv6 to unknown group, promisc [ OK ]
> > TEST: vlan_filtering=1 bridge: Multicast IPv6 to unknown group, allmulti [ OK ]
> > TEST: VLAN upper: Unicast IPv4 to primary MAC address [ OK ]
> > TEST: VLAN upper: Unicast IPv4 to macvlan MAC address [ OK ]
> > TEST: VLAN upper: Unicast IPv4 to unknown MAC address [ OK ]
> > TEST: VLAN upper: Unicast IPv4 to unknown MAC address, promisc [ OK ]
> > TEST: VLAN upper: Unicast IPv4 to unknown MAC address, allmulti [ OK ]
> > TEST: VLAN upper: Multicast IPv4 to joined group [ OK ]
> > TEST: VLAN upper: Multicast IPv4 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN upper: Multicast IPv4 to unknown group, promisc [ OK ]
> > TEST: VLAN upper: Multicast IPv4 to unknown group, allmulti [ OK ]
> > TEST: VLAN upper: Multicast IPv6 to joined group [ OK ]
> > TEST: VLAN upper: Multicast IPv6 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN upper: Multicast IPv6 to unknown group, promisc [ OK ]
> > TEST: VLAN upper: Multicast IPv6 to unknown group, allmulti [ OK ]
> > TEST: VLAN upper: 1588v2 over L2 transport, Sync [ OK ]
> > TEST: VLAN upper: 1588v2 over L2 transport, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN upper: 1588v2 over L2 transport, Peer Delay Request [ OK ]
> > TEST: VLAN upper: 1588v2 over IPv4, Sync [FAIL]
> > reception failed
> > ;TEST: VLAN upper: 1588v2 over IPv4, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN upper: 1588v2 over IPv4, Peer Delay Request [FAIL]
> > reception failed
> > TEST: VLAN upper: 1588v2 over IPv6, Sync [FAIL]
> > reception failed
> > TEST: VLAN upper: 1588v2 over IPv6, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN upper: 1588v2 over IPv6, Peer Delay Request [FAIL]
> > reception failed
>
> The same thing happens with VLAN too...
>
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to joined group [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group, promisc [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group, allmulti [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to joined group [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group, promisc [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group, allmulti [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Sync [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Follow-Up [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Peer Delay Request [ OK ]
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Sync [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Peer Delay Request [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Sync [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Peer Delay Request [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to joined group [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group, promisc [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group, allmulti [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to joined group [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group [XFAIL]
> > reception succeeded, but should have failed
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group, promisc [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group, allmulti [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Sync [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Follow-Up [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Peer Delay Request [ OK ]
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Sync [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Peer Delay Request [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Sync [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Follow-Up [FAIL]
> > reception failed
> > TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Peer Delay Request [FAIL]
> > reception failed
>
> And over bridge ports...

--
Ansuel