diff options
author | Ben Hutchings <ben.hutchings@mind.be> | 2021-08-10 00:59:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-10 09:58:15 +0100 |
commit | af01754f9e3c553a2ee63b4693c79a3956e230ab (patch) | |
tree | 008ba16d7ac2b1323a50a4213903b5a5a52ec012 /virt | |
parent | 8f4f58f88fe0d9bd591f21f53de7dbd42baeb3fa (diff) | |
download | linux-af01754f9e3c553a2ee63b4693c79a3956e230ab.tar.bz2 |
net: dsa: microchip: ksz8795: Fix VLAN untagged flag change on deletion
When a VLAN is deleted from a port, the flags in struct
switchdev_obj_port_vlan are always 0. ksz8_port_vlan_del() copies the
BRIDGE_VLAN_INFO_UNTAGGED flag to the port's Tag Removal flag, and
therefore always clears it.
In case there are multiple VLANs configured as untagged on this port -
which seems useless, but is allowed - deleting one of them changes the
remaining VLANs to be tagged.
It's only ever necessary to change this flag when a VLAN is added to
the port, so leave it unchanged in ksz8_port_vlan_del().
Fixes: e66f840c08a2 ("net: dsa: ksz: Add Microchip KSZ8795 DSA driver")
Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions