Re: [PATCH v3 net-next 23/24] Documentation: net: dsa: Add details about NXP SJA1105 driver

From: Florian Fainelli
Date: Tue Apr 16 2019 - 20:20:53 EST




On 12/04/2019 18:28, Vladimir Oltean wrote:

[snip]

+Segregating the switch ports in multiple bridges is supported (e.g. 2 + 2), but
+all bridges should have the same level of VLAN awareness (either both have
+``vlan_filtering`` 0, or both 1). Also an inevitable limitation of the fact
+that VLAN awareness is global at the switch level is that once a bridge with
+``vlan_filtering`` enslaves at least one switch port, the other un-bridged
+ports are no longer available for standalone traffic termination.

That is quite a limitation that I don't think I had fully grasped until reading your different patches. Since enslaving ports into a bridge comes after the network device was already made available for use, maybe you should force the carrier down or something along those lines as soon as a port is enslaved into a bridge with vlan_filtering=1 to make this more predictable for the user?
--
Florian