Skip to content

mlxsw: spectrum: Configure TTL of "inherit" for offloaded tunnels

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mlxsw: reg: Add Tunneling IPinIP General Configuration Registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+31 -00 replies
2/2mlxsw: spectrum_router: Configure TIGCR on initdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+10 -10 replies

Reviews trailers per patch

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

PatchIdo Schimmel
1/2R-b
2/2R-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 0/2] mlxsw: spectrum: Configure TTL of "inherit" for offloaded tunnels

From: Jiri Pirko <[email protected]>

Petr says:

Currently mlxsw only offloads tunnels that are configured with TTL of "inherit" (which is the default). However, Spectrum defaults to 255 and the driver neglects to change the configuration. Thus the tunnel packets from offloaded tunnels always have TTL of 255, even though tunnels with explicit TTL of 255 are never actually offloaded.

To fix this, introduce support for TIGCR, the register that keeps the related bits of global tunnel configuration, and use it on first offload to properly configure inheritance of TTL of tunnel packets from overlay packets.

Petr Machata (2):
mlxsw: reg: Add Tunneling IPinIP General Configuration Register
mlxsw: spectrum_router: Configure TIGCR on init

 drivers/net/ethernet/mellanox/mlxsw/reg.h          | 31 ++++++++++++++++++++++
 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 11 +++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)
Signature · 1 line
2.9.5