mlxsw: reg: Add Switch Port VLAN Stacking Register
authorAmit Cohen <amcohen@nvidia.com>
Tue, 8 Dec 2020 09:22:42 +0000 (11:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Dec 2020 23:45:56 +0000 (15:45 -0800)
commitc1c32a79c5803e2eae356623a8c614eacf2ed7ef
treefa22cac52ef03daa3fcf5b6c94e30e97991bca3c
parent02c3b5c5d0197fd535d1ba96e29fa00b8d2acdf2
mlxsw: reg: Add Switch Port VLAN Stacking Register

SPVTR register configures the VLAN mode of the port to enable VLAN
stacking.

It will be used to configure VxLAN to push VLAN to the decapsulated packet.
Without this setting, Spectrum-2 overtakes the VLAN tag of decapsulated
packet for bridging.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h