]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Unmap 802.1Q FID before destroying it
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Aug 2016 14:39:36 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:18:27 +0000 (19:18 -0400)
commitd798ccb97bf2a13b04c8272f180c5ce62bf46a37
tree0f4c72a9174c8e4f0a586575be4dc4eda20ae3a2
parentd0c053497eab2a0a6f0ac95b1ae3c274c97d8813
mlxsw: spectrum: Unmap 802.1Q FID before destroying it

Before destroying the 802.1Q FID we should first remove the VID-to-FID
mapping. This makes mlxsw_sp_fid_destroy() symmetric with regards to
mlxsw_sp_fid_create().

Fixes: ef8f708e5559 ("mlxsw: spectrum: Use per-FID struct for the VLAN-aware bridge")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c