]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Clear NVE configuration when destroying 802.1D FIDs
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:17 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:07 +0000 (17:45 -0700)
commite178808d78414dec2819d52b0ca5436cd94d49f6
treefe1f1d401641718785720ee7439128c0a8a87efe
parent8c49cebd02d8039a49ce7da2f1edcd8d960005bf
mlxsw: spectrum_fid: Clear NVE configuration when destroying 802.1D FIDs

802.1D FIDs are used to represent VLAN-unaware bridges and currently
this is the only type of FID that supports NVE configuration.

Since the NVE tunnel device does not take a reference on the FID, it is
possible for the FID to be destroyed when it still has NVE
configuration.

Therefore, when destroying the FID make sure to disable its NVE
configuration.

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_fid.c