]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Allow for PVID deletion
authorIdo Schimmel <idosch@mellanox.com>
Thu, 18 Feb 2016 10:30:02 +0000 (11:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 15:44:26 +0000 (10:44 -0500)
commit3af50c7e6f568344450a62fc52e748ca2050aeca
tree7875d0f4f2d140dee30e1141d0dbd33b8506d4b7
parent297ad1e9271fe58495cd29c290820fac8b8c51ce
mlxsw: spectrum: Allow for PVID deletion

When PVID is toggled off on a port member in a VLAN filtering bridge or
the PVID VLAN is deleted, make the port drop untagged packets. Reverse
the operation when PVID is toggled back on.

Set the PVID back to the default (1), when leaving the bridge so that
untagged traffic will be directed to the CPU.

Fixes: 91747a7223b2 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c