OSDN Git Service

net: dsa: mt7530: manually set up VLAN ID 0
authorDENG Qingfang <dqfext@gmail.com>
Tue, 24 Aug 2021 16:52:52 +0000 (00:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:09:31 +0000 (11:09 +0100)
commit1ca8a193cade7f49801cc79e20d5f2a123991cdf
tree6015a446d8b5cdb0d2d6c94dee441e60d2f5c47a
parente93826d35c647bd68c83af9ca97bba6eb3b2b711
net: dsa: mt7530: manually set up VLAN ID 0

The driver was relying on dsa_slave_vlan_rx_add_vid to add VLAN ID 0. After
the blamed commit, VLAN ID 0 won't be set up anymore, breaking software
bridging fallback on VLAN-unaware bridges.

Manually set up VLAN ID 0 to fix this.

Fixes: 06cfb2df7eb0 ("net: dsa: don't advertise 'rx-vlan-filter' when not needed")
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h