Kernel 5.4.96 broke untagged DSA VLANs on my mvebu routers

I was playing around, trying to ferret out information on what can be done with netifd, as things have changed since I last poked around. In case it is of any use here is a snippet:

/etc/config/network

...

config device
	option type 'bridge'
	option name 'switch0'

config bridge-vlan
	option device 'switch0'
	option vlan '30'
	option ports 'lan3 lan4'
	option alias 'foo'

config bridge-vlan
	option device 'switch0'
	option vlan '20'
	option ports 'lan2 lan4'
	option alias 'bar'

config bridge-vlan
	option device 'switch0'
	option vlan '10'
	option ports 'lan1 lan4:*'
#	option ports 'lan1 lan2 lan3 lan4'
#	option ports 'lan1 lan2 lan3 lan4:t'
#	option ports 'lan1 lan2 lan3 lan4:*'
#	option ports 'lan1 lan2 lan3 lan4:t*'
	option alias 'lan'

###################################
config interface 'lan'
	option ifname 'switch0.lan'
#	option ifname 'switch0.foo'
	option proto 'static'
	option ipaddr '192.168.10.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

...

root@mamba:/etc/config# bridge vlan
port              vlan-id  
lan4              10 PVID Egress Untagged
                  20 Egress Untagged
                  30 Egress Untagged
lan3              30 PVID Egress Untagged
lan2              20 PVID Egress Untagged
lan1              10 PVID Egress Untagged
switch0           10
                  20
                  30

just some info, I do not have anything connected to this device to test what is actually occurring. Some info to be found at PR4307 also.

1 Like