On 5/11/2020 6:53 AM, Vladimir Oltean wrote: > From: Russell King <rmk+ker...@armlinux.org.uk> > > DSA assumes that a bridge which has vlan filtering disabled is not > vlan aware, and ignores all vlan configuration. However, the kernel > software bridge code allows configuration in this state. > > This causes the kernel's idea of the bridge vlan state and the > hardware state to disagree, so "bridge vlan show" indicates a correct > configuration but the hardware lacks all configuration. Even worse, > enabling vlan filtering on a DSA bridge immediately blocks all traffic > which, given the output of "bridge vlan show", is very confusing. > > Provide an option that drivers can set to indicate they want to receive > vlan configuration even when vlan filtering is disabled. At the very > least, this is safe for Marvell DSA bridges, which do not look up > ingress traffic in the VTU if the port is in 8021Q disabled state. It is > also safe for the Ocelot switch family. Whether this change is suitable > for all DSA bridges is not known. > > Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> > Signed-off-by: Vladimir Oltean <vladimir.olt...@nxp.com> We may want to consolidate these checks in a helper function at some point, and the name is still not super clear to me (not sure what disabled refers to unless you read the comments), but this is as good as it could be: Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
Re: [PATCH v2 net-next 01/15] net: dsa: provide an option for drivers to always receive bridge VLANs
- [PATCH v2 net-next 14/15] net: dsa: sja1105: implement V... Vladimir Oltean
- [PATCH v2 net-next 12/15] net: dsa: sja1105: add packing... Vladimir Oltean
- [PATCH v2 net-next 08/15] net: dsa: sja1105: prepare tag... Vladimir Oltean
- Re: [PATCH v2 net-next 08/15] net: dsa: sja1105: pr... Florian Fainelli
- [PATCH v2 net-next 06/15] net: dsa: sja1105: allow VLAN ... Vladimir Oltean
- Re: [PATCH v2 net-next 06/15] net: dsa: sja1105: al... Florian Fainelli
- [PATCH v2 net-next 11/15] net: dsa: sja1105: add a new b... Vladimir Oltean
- [PATCH v2 net-next 15/15] docs: net: dsa: sja1105: docum... Vladimir Oltean
- [PATCH v2 net-next 13/15] net: dsa: sja1105: implement a... Vladimir Oltean
- [PATCH v2 net-next 01/15] net: dsa: provide an option fo... Vladimir Oltean
- Re: [PATCH v2 net-next 01/15] net: dsa: provide an ... Florian Fainelli
- [PATCH v2 net-next 05/15] net: dsa: sja1105: save/restor... Vladimir Oltean
- Re: [PATCH v2 net-next 05/15] net: dsa: sja1105: sa... Florian Fainelli
- [PATCH v2 net-next 09/15] net: dsa: tag_8021q: support u... Vladimir Oltean
- Re: [PATCH v2 net-next 09/15] net: dsa: tag_8021q: ... Florian Fainelli
- [PATCH v2 net-next 02/15] net: dsa: tag_8021q: introduce... Vladimir Oltean
- Re: [PATCH v2 net-next 02/15] net: dsa: tag_8021q: ... Florian Fainelli
- [PATCH v2 net-next 07/15] net: dsa: sja1105: exit sja110... Vladimir Oltean
- Re: [PATCH v2 net-next 07/15] net: dsa: sja1105: ex... Florian Fainelli
- [PATCH v2 net-next 03/15] net: dsa: sja1105: keep the VL... Vladimir Oltean
- Re: [PATCH v2 net-next 03/15] net: dsa: sja1105: ke... kbuild test robot