]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Allow controlling destruction of default port VLAN
authorIdo Schimmel <idosch@mellanox.com>
Thu, 20 Dec 2018 19:42:29 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 23:48:54 +0000 (15:48 -0800)
commitf33a426311c0f282694923b52877b2f55898a1e2
tree7ea37424731c07a6aabce183349a158388de5aa4
parent2dd4c7c7de56bd0961b789ec8f66571c0d4ee702
mlxsw: spectrum: Allow controlling destruction of default port VLAN

The function allows flushing all the existing VLAN entries on a port. It
is invoked when a port is destroyed and when it is unlinked from a LAG.
In the latter case, when moving to the new default VLAN, there will not
be a need to destroy the default VLAN entry.

Therefore, add an argument that allows to control whether the default
port VLAN should be destroyed or not. Currently it is always set to
'true'.

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