]> 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)
commit7da94de232874592d55b68937d31dd462187b390
tree7ea37424731c07a6aabce183349a158388de5aa4
parentd61d08e925bb91d6ba38cdd4f770d4336007784e
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