]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: VLAN filtering is global to all users
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 10 Mar 2021 18:46:10 +0000 (10:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2021 23:48:53 +0000 (15:48 -0800)
commit68a75f3f9e83dfb4e84ebd80143137f92fa23574
tree9138ce9a25e27728c3b0caac02492ec099d02af5
parent13a5b64fae85777c8e86e37209fff90d11b30fea
net: dsa: b53: VLAN filtering is global to all users

The bcm_sf2 driver uses the b53 driver as a library but does not make
usre of the b53_setup() function, this made it fail to inherit the
vlan_filtering_is_global attribute. Fix this by moving the assignment to
b53_switch_alloc() which is used by bcm_sf2.

Fixes: 63cd91e28441 ("net: dsa: b53: Let DSA handle mismatched VLAN filtering settings")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c