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:32:32 +0000 (09:32 +0100)
commit07348a7ebb5879763765a82e9b384c5061cda8f4
tree58c92eaf3962953bc4780d03ba959435245b3d2e
parentcac1bffc77e9cd07cfde767bdf8128955b8a6a1a
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