Skip to content

mlxsw: Add support for IP-in-IP with IPv6 underlay

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 Latest14 patches 0 repliesApplied 14/14

Patches in v1 All 14 applied

#Subject and filesSizeRepliesApplied
1/14mlxsw: spectrum_router: Create common function for fib_entry_type_unset() codedrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+10 -30 repliesApplied
2/14mlxsw: spectrum_ipip: Pass IP tunnel parameters by reference and as 'const'drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c+33 -330 repliesApplied
3/14mlxsw: spectrum_router: Fix arguments alignmentdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+5 -20 repliesApplied
4/14mlxsw: spectrum_ipip: Create common function for mlxsw_sp_ipip_ol_netdev_change_gre()drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+59 -370 repliesApplied
5/14mlxsw: Take tunnel's type into account when searching underlay devicedrivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+21 -130 repliesApplied
6/14mlxsw: reg: Add Router IP version Six Registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+32 -00 repliesApplied
7/14mlxsw: reg: Add support for rtdp_ipip6_pack()drivers/net/ethernet/mellanox/mlxsw/reg.h+26 -50 repliesApplied
8/14mlxsw: reg: Add support for ratr_ipip6_entry_pack()drivers/net/ethernet/mellanox/mlxsw/reg.h+6 -00 repliesApplied
9/14mlxsw: reg: Add support for ritr_loopback_ipip6_pack()drivers/net/ethernet/mellanox/mlxsw/reg.h+17 -00 repliesApplied
10/14mlxsw: Create separate ipip_ops_arr for different ASICsdrivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+23 -40 repliesApplied
11/14mlxsw: spectrum_ipip: Add mlxsw_sp_ipip_gre6_opsdrivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h+66 -00 repliesApplied
12/14mlxsw: Add IPV6_ADDRESS kvdl entry typedrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c+3 -00 repliesApplied
13/14mlxsw: spectrum_router: Increase parsing depth for IPv6 decapsulationdrivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+43 -00 repliesApplied
14/14mlxsw: Add support for IP-in-IP with IPv6 underlay for Spectrum-2 and abovedrivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+309 -100 repliesApplied

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchPetr Machata
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 00/14] mlxsw: Add support for IP-in-IP with IPv6 underlay

From: Ido Schimmel <[email protected]>

Currently, mlxsw only supports IP-in-IP with IPv4 underlay. Traffic routed through 'gre' netdevs is encapsulated with IPv4 and GRE headers. Similarly, incoming IPv4 GRE packets are decapsulated and routed in the overlay VRF (which can be the same as the underlay VRF).

This patchset adds support for IPv6 underlay using the 'ip6gre' netdev. Due to architectural differences between Spectrum-1 and later ASICs, this functionality is only supported on Spectrum-2 onwards (the software data path is used for Spectrum-1).

Patchset overview:

Patches #1-#5 are preparations.

Patches #6-#9 add and extend required device registers.

Patches #10-#14 gradually add IPv6 underlay support.

A follow-up patchset will add net/forwarding/ selftests.

Amit Cohen (14):
mlxsw: spectrum_router: Create common function for
fib_entry_type_unset() code
mlxsw: spectrum_ipip: Pass IP tunnel parameters by reference and as

    'const'

mlxsw: spectrum_router: Fix arguments alignment
mlxsw: spectrum_ipip: Create common function for
mlxsw_sp_ipip_ol_netdev_change_gre()
mlxsw: Take tunnel's type into account when searching underlay device
mlxsw: reg: Add Router IP version Six Register
mlxsw: reg: Add support for rtdp_ipip6_pack()
mlxsw: reg: Add support for ratr_ipip6_entry_pack()
mlxsw: reg: Add support for ritr_loopback_ipip6_pack()
mlxsw: Create separate ipip_ops_arr for different ASICs
mlxsw: spectrum_ipip: Add mlxsw_sp_ipip_gre6_ops
mlxsw: Add IPV6_ADDRESS kvdl entry type
mlxsw: spectrum_router: Increase parsing depth for IPv6 decapsulation
mlxsw: Add support for IP-in-IP with IPv6 underlay for Spectrum-2 and
above

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  86 +++-
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   2 +
 .../ethernet/mellanox/mlxsw/spectrum2_kvdl.c  |   1 +
 .../ethernet/mellanox/mlxsw/spectrum_ipip.c   | 432 ++++++++++++++++--
 .../ethernet/mellanox/mlxsw/spectrum_ipip.h   |  27 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 186 ++++++--
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   2 +
 7 files changed, 641 insertions(+), 95 deletions(-)
Signature · 1 line
2.31.1