]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8791a50562f6a811a0050fa88a107a4b9aca243
tree5d68764b35327f079dc6f13bb1cb28e68842e698
parentcd225c310493efe4a40bf6dc8a97663d40750f2c
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: fe277e18e018 ("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