Skip to content

mlxsw: Add support for nexthop objects

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 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8mlxsw: spectrum_router: Add support for nexthop objectsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+454 -00 repliesApplied
2/8mlxsw: spectrum_router: Enable resolution of nexthop groups from nexthop objectsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+31 -00 repliesApplied
3/8mlxsw: spectrum_router: Allow programming routes with nexthop objectsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+0 -140 repliesApplied
4/8selftests: mlxsw: Add nexthop objects configuration teststools/testing/selftests/drivers/net/mlxsw/rtnetlink.sh+189 -00 repliesApplied
5/8selftests: forwarding: Do not configure nexthop objects twicetools/testing/selftests/net/forwarding/router_mpath_nh.sh+0 -10 repliesApplied
6/8selftests: forwarding: Test IPv4 routes with IPv6 link-local nexthopstools/testing/selftests/net/forwarding/router_mpath_nh.sh+11 -00 repliesApplied
7/8selftests: forwarding: Add device-only nexthop testtools/testing/selftests/net/forwarding/router_nh.sh+160 -00 repliesApplied
8/8selftests: forwarding: Add multipath tunneling nexthop testtools/testing/selftests/net/forwarding/gre_multipath_nh.sh+356 -00 repliesApplied

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/8R-b
2/8R-b
3/8R-b
4/8
5/8
6/8
7/8
8/8

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 0/8] mlxsw: Add support for nexthop objects

From: Ido Schimmel <[email protected]>

This patch set adds support for nexthop objects in mlxsw. Nexthop objects are treated as another front-end for programming nexthops, in addition to the existing IPv4 and IPv6 front-ends.

Patch #1 registers a listener to the nexthop notification chain and parses the nexthop information into the existing mlxsw data structures that are already used by the IPv4 and IPv6 front-ends. Blackhole nexthops are currently rejected. Support will be added in a follow-up patch set.

Patch #2 extends mlxsw to resolve its internal nexthop objects from the nexthop identifier encoded in the FIB info of the notified routes.

Patch #3 finally removes the limitation of rejecting routes that use nexthop objects.

Patch #4 adds a selftest.

Patches #5-#8 add generic forwarding selftests that can be used with veth pairs or physical loopbacks.

Ido Schimmel (8):
mlxsw: spectrum_router: Add support for nexthop objects
mlxsw: spectrum_router: Enable resolution of nexthop groups from
nexthop objects
mlxsw: spectrum_router: Allow programming routes with nexthop objects
selftests: mlxsw: Add nexthop objects configuration tests
selftests: forwarding: Do not configure nexthop objects twice
selftests: forwarding: Test IPv4 routes with IPv6 link-local nexthops
selftests: forwarding: Add device-only nexthop test
selftests: forwarding: Add multipath tunneling nexthop test

 .../ethernet/mellanox/mlxsw/spectrum_router.c | 498 +++++++++++++++++-
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   1 +
 .../selftests/drivers/net/mlxsw/rtnetlink.sh  | 189 +++++++
 .../net/forwarding/gre_multipath_nh.sh        | 356 +++++++++++++
 .../net/forwarding/router_mpath_nh.sh         |  12 +-
 .../selftests/net/forwarding/router_nh.sh     | 160 ++++++
 6 files changed, 1201 insertions(+), 15 deletions(-)
 create mode 100755 tools/testing/selftests/net/forwarding/gre_multipath_nh.sh
 create mode 100755 tools/testing/selftests/net/forwarding/router_nh.sh
Signature · 1 line
2.28.0