mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: dsa: sja1105: allow VLAN configuration from the bridge in all states
Let the DSA core call our .port_vlan_add methods every time the bridge layer requests so. We will deal internally with saving/restoring VLANs depending on our VLAN awareness state. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ec5ae61076
commit
fa83e5d918
1 changed files with 2 additions and 0 deletions
|
@ -2350,6 +2350,8 @@ static int sja1105_setup(struct dsa_switch *ds)
|
|||
|
||||
ds->mtu_enforcement_ingress = true;
|
||||
|
||||
ds->configure_vlan_while_not_filtering = true;
|
||||
|
||||
/* The DSA/switchdev model brings up switch ports in standalone mode by
|
||||
* default, and that means vlan_filtering is 0 since they're not under
|
||||
* a bridge, so it's safe to set up switch tagging at this time.
|
||||
|
|
Loading…
Add table
Reference in a new issue