linux/drivers/net/dsa/b53
Florian Fainelli ed409f3bba net: dsa: b53: Configure VLANs while not filtering
Update the B53 driver to support VLANs while not filtering. This
requires us to enable VLAN globally within the switch upon driver
initial configuration (dev->vlan_enabled).

We also need to remove the code that dealt with PVID re-configuration in
b53_vlan_filtering() since that function worked under the assumption
that it would only be called to make a bridge VLAN filtering, or not
filtering, and we would attempt to move the port's PVID accordingly.

Now that VLANs are programmed all the time, even in the case of a
non-VLAN filtering bridge, we would be programming a default_pvid for
the bridged switch ports.

We need the DSA receive path to pop the VLAN tag if it is the bridge's
default_pvid because the CPU port is always programmed tagged in the
programmed VLANs. In order to do so we utilize the
dsa_untag_bridge_pvid() helper introduced in the commit before within
net/dsa/tag_brcm.c.

Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-23 18:13:45 -07:00
..
b53_common.c net: dsa: b53: Configure VLANs while not filtering 2020-09-23 18:13:45 -07:00
b53_mdio.c net: dsa: b53: Add BCM5389 support 2018-06-01 11:15:42 -04:00
b53_mmap.c net: dsa: b53: Fix sparse warnings in b53_mmap.c 2018-04-04 11:15:27 -04:00
b53_priv.h net: dsa: b53: Configure VLANs while not filtering 2020-09-23 18:13:45 -07:00
b53_regs.h net: dsa: b53: b53_arl_rw_op() needs to select IVL or SVL 2020-04-22 12:50:41 -07:00
b53_serdes.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
b53_serdes.h net: dsa: b53: Use the correct style for SPDX License Identifier 2019-09-22 15:24:51 -07:00
b53_spi.c net: dsa: b53: Fixup endianness warnings 2020-07-05 15:45:38 -07:00
b53_srab.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-05-24 13:47:27 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile net: dsa: b53: Add SerDes support 2018-09-06 07:48:34 -07:00