Skip to content

mlxsw: Allow 802.1d and .1ad VxLAN bridges to coexist on Spectrum>=2

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7mlxsw: reg: Add egr_et_set field to SPVIDdrivers/net/ethernet/mellanox/mlxsw/reg.h+9 -00 repliesApplied
2/7mlxsw: reg: Add Switch Port Egress VLAN EtherType Registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+36 -00 repliesApplied
3/7mlxsw: spectrum: Add mlxsw_sp_port_egress_ethtype_set()drivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+18 -00 repliesApplied
4/7mlxsw: Add struct mlxsw_sp_switchdev_ops per ASICdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+31 -00 repliesApplied
5/7mlxsw: Allow 802.1d and .1ad VxLAN bridges to coexist on Spectrum>=2drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c+53 -150 repliesApplied
6/7selftests: forwarding: Add test for dual VxLAN bridgetools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh+366 -00 repliesApplied
7/7selftests: mlxsw: spectrum-2: Remove q_in_vni_veto testtools/testing/selftests/drivers/net/mlxsw/spectrum-2/q_in_vni_veto.sh+0 -770 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/7] mlxsw: Allow 802.1d and .1ad VxLAN bridges to coexist on Spectrum>=2

From: Ido Schimmel <[email protected]>

This patchset allows user space to simultaneously configure both 802.1d and 802.1ad VxLAN bridges on Spectrum-2 and later ASICs. 802.1ad VxLAN bridges are still forbidden on Spectrum-1.

The reason for the current limitation is that up until now the EtherType that was pushed to decapsulated VxLAN packets was a property of the tunnel port, of which there is only one. This meant that a 802.1ad VxLAN bridge could not be configured if the tunnel port was already configured to push a 802.1q tag.

This patchset improves the situation by making two changes. First, decapsulated packets are marked as having their EtherType decided by the egress port. Second, local ports member in the bridge (e.g., swp1) are configured to set the correct egress EtherType.

Patchset overview:

Patch #1 adds a register required for the first change

Patches #2-#3 add the register required for the second change and a corresponding API

Patch #4 prepares the driver for the split in behavior between Spectrum-1 and later ASICs

Patch #5 performs the two above mentioned changes to allow the driver to support simultaneous 802.1ad and 802.1d VxLAN bridges on Spectrum-2 and later ASICs

Patch #6 adds a selftest

Patch #7 removes a selftest that verified the limitation that was lifted by this patchset

Amit Cohen (7):
mlxsw: reg: Add egr_et_set field to SPVID
mlxsw: reg: Add Switch Port Egress VLAN EtherType Register
mlxsw: spectrum: Add mlxsw_sp_port_egress_ethtype_set()
mlxsw: Add struct mlxsw_sp_switchdev_ops per ASIC
mlxsw: Allow 802.1d and .1ad VxLAN bridges to coexist on Spectrum>=2
selftests: forwarding: Add test for dual VxLAN bridge
selftests: mlxsw: spectrum-2: Remove q_in_vni_veto test

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  45 +++
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  19 +
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   8 +
 .../ethernet/mellanox/mlxsw/spectrum_nve.h    |   1 -
 .../mellanox/mlxsw/spectrum_nve_vxlan.c       |  15 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |  74 +++-
 .../net/mlxsw/spectrum-2/q_in_vni_veto.sh     |  77 ----
 .../net/forwarding/dual_vxlan_bridge.sh       | 366 ++++++++++++++++++
 8 files changed, 513 insertions(+), 92 deletions(-)
 delete mode 100755 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/q_in_vni_veto.sh
 create mode 100755 tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
Signature · 1 line
2.29.2