]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mlxsw: spectrum: Handle VLAN device unlinking
authorIdo Schimmel <idosch@mellanox.com>
Wed, 19 Dec 2018 06:08:41 +0000 (06:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 20:28:07 +0000 (12:28 -0800)
commite149113a74c35f0a28d1bfe17d2505a03563c1d5
tree7dd32c855b5daab79cfc759c837721bd95032cfd
parentf1d7c33d6ab585aba831a73a322070eb89724072
mlxsw: spectrum: Handle VLAN device unlinking

In commit 993107fea5ee ("mlxsw: spectrum_switchdev: Fix VLAN device
deletion via ioctl") I fixed a bug caused by the fact that the driver
views differently the deletion of a VLAN device when it is deleted via
an ioctl and netlink.

Instead of relying on a specific order of events (device being
unregistered vs. VLAN filter being updated), simply make sure that the
driver performs the necessary cleanup when the VLAN device is unlinked,
which always happens before the other two events.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c