]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Delete RIF when VLAN device is removed
authorIdo Schimmel <idosch@mellanox.com>
Thu, 4 Oct 2018 15:48:03 +0000 (15:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Oct 2018 16:53:03 +0000 (09:53 -0700)
commiteebc7e6d740d0983f75ed533632f1a4b8d7fcff9
treef20dee6d3425f4512464374c4ed1a7996c235048
parent5a7cf0e547773ef740742bfe24d7ed1a66a44dc4
mlxsw: spectrum: Delete RIF when VLAN device is removed

In commit e451abacb1e8 ("mlxsw: spectrum_switchdev: Do not leak RIFs
when removing bridge") I handled the case where RIFs created for VLAN
devices were not properly cleaned up when their real device (a bridge)
was removed.

However, I forgot to handle the case of the VLAN device itself being
removed. Do so now when the VLAN device is being unlinked from its real
device.

Fixes: d0216426a457 ("mlxsw: spectrum: Enable L3 interfaces on top of bridge devices")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reported-by: Artem Shvorin <art@qrator.net>
Tested-by: Artem Shvorin <art@qrator.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c