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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:32:08 +0000 (14:32 +0200)
commit39e1a35ea65ab60bbc8fdd8d5c547ad77204b222
tree065f0c704652925c7299526ba6aa69e64865a513
parentd3b5a04b8ce51877c245fdb454d3a4f4ba86b74d
net: dsa: b53: VLAN filtering is global to all users

commit d45c36bafb94e72fdb6dee437279b61b6d97e706 upstream.

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: 7228b23e68f7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/b53/b53_common.c