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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:37:00 +0000 (09:37 +0100)
commit28c8d59cf35fce118c59eedfbe1cca94c93f0458
treea6c7930848d85acd26cd7d326c54fa02f5648e85
parentda689d5e066bf3966856f117dd0f29009e2fac4e
mlxsw: spectrum_switchdev: Set PVID correctly during VLAN deletion

[ Upstream commit 674bed5df4cab8f96d04f7b99608883a48f9226b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c