]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b711c4daea7f7d8a891ce72563b38fbb97ad843
tree518f38d96f16cc3af431c1139d7983c3153091ac
parent364b39b3240057b3aded870ad5f4e39524a38a0b
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