net: dsa: b53: Create default VLAN entry explicitly
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 Jun 2021 22:10:55 +0000 (15:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 17:19:39 +0000 (10:19 -0700)
commit64a81b24487f0d2fba0f033029eec2abc7d82cee
tree518f38d96f16cc3af431c1139d7983c3153091ac
parentee8e7622e09af0675f4d7c1dec9702791591d02b
net: dsa: b53: Create default VLAN entry explicitly

In case CONFIG_VLAN_8021Q is not set, there will be no call down to the
b53 driver to ensure that the default PVID VLAN entry will be configured
with the appropriate untagged attribute towards the CPU port. We were
implicitly relying on dsa_slave_vlan_rx_add_vid() to do that for us,
instead make it explicit.

Reported-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c