mlxsw: Add Spectrum-1 ip6gre support
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mlxsw: spectrum_router: Use gen_pool for RIF index allocationdrivers/ drivers/ | +67 | 0 replies | Applied |
| 2/6 | mlxsw: spectrum_router: Parametrize RIF allocation sizedrivers/ | +27 | 0 replies | Applied |
| 3/6 | mlxsw: spectrum_router: Add support for double entry RIFsdrivers/ drivers/ drivers/ | +5 | 0 replies | Applied |
| 4/6 | mlxsw: spectrum_ipip: Rename Spectrum-2 ip6gre operationsdrivers/ | +47 | 0 replies | Applied |
| 5/6 | mlxsw: spectrum_ipip: Add Spectrum-1 ip6gre supportdrivers/ | +8 | 0 replies | Applied |
| 6/6 | selftests: mlxsw: Move IPv6 decap_error test to shared directorytools/ | +1 | 0 replies | Applied |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Amit Cohen |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/6] mlxsw: Add Spectrum-1 ip6gre support
Ido Schimmel writes:
Currently, mlxsw only supports ip6gre offload on Spectrum-2 and newer ASICs. Spectrum-1 can also offload ip6gre tunnels, but it needs double entry router interfaces (RIFs) for the RIFs representing these tunnels. In addition, the RIF index needs to be even. This is handled in patches #1-#3.
The implementation can otherwise be shared between all Spectrum generations. This is handled in patches #4-#5.
Patch #6 moves a mlxsw ip6gre selftest to a shared directory, as ip6gre is no longer only supported on Spectrum-2 and newer ASICs.
This work is motivated by users that require multiple GRE tunnels that all share the same underlay VRF. Currently, mlxsw only supports decapsulation based on the underlay destination IP (i.e., not taking the GRE key into account), so users need to configure these tunnels with different source IPs and IPv6 addresses are easier to spare than IPv4.
Tested using existing ip6gre forwarding selftests.
Ido Schimmel (6):
mlxsw: spectrum_router: Use gen_pool for RIF index allocation
mlxsw: spectrum_router: Parametrize RIF allocation size
mlxsw: spectrum_router: Add support for double entry RIFs
mlxsw: spectrum_ipip: Rename Spectrum-2 ip6gre operations
mlxsw: spectrum_ipip: Add Spectrum-1 ip6gre support
selftests: mlxsw: Move IPv6 decap_error test to shared directory
.../ethernet/mellanox/mlxsw/spectrum_ipip.c | 160 +++++-------------
.../ethernet/mellanox/mlxsw/spectrum_ipip.h | 1 +
.../ethernet/mellanox/mlxsw/spectrum_router.c | 102 +++++++++--
.../ethernet/mellanox/mlxsw/spectrum_router.h | 4 +
.../devlink_trap_tunnel_ipip6.sh | 2 +-
5 files changed, 138 insertions(+), 131 deletions(-)
rename tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 => }/devlink_trap_tunnel_ipip6.sh (99%)Signature · 1 line
2.35.3