mlxsw: spectrum_switchdev: Set PVID correctly during VLAN deletion
authorIdo Schimmel <idosch@mellanox.com>
Tue, 8 Jan 2019 16:48:13 +0000 (16:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2019 21:53:54 +0000 (16:53 -0500)
commit674bed5df4cab8f96d04f7b99608883a48f9226b
tree5d68764b35327f079dc6f13bb1cb28e68842e698
parent289fb44df4e4c3fe977ee4b451e1d11e10227654
mlxsw: spectrum_switchdev: Set PVID correctly during VLAN deletion

When a VLAN is deleted from a bridge port we should not change the PVID
unless the deleted VLAN is the PVID.

Fixes: fe9ccc785de5 ("mlxsw: spectrum_switchdev: Don't batch VLAN operations")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c