Skip to content

mlxsw: Preparations for resilient nexthop groups

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: Remove RTNL assertiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+0 -20 repliesApplied
2/14mlxsw: spectrum_router: Consolidate nexthop helpersdrivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+9 -180 repliesApplied
3/14mlxsw: spectrum_router: Only provide MAC address for valid nexthopsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+2 -10 repliesApplied
4/14mlxsw: spectrum_router: Adjust comments on nexthop fieldsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+6 -60 repliesApplied
5/14mlxsw: spectrum_router: Introduce nexthop action fielddrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+17 -80 repliesApplied
6/14mlxsw: spectrum_router: Prepare for nexthops with trap actiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+4 -10 repliesApplied
7/14mlxsw: spectrum_router: Add nexthop trap action supportdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+29 -130 repliesApplied
8/14mlxsw: spectrum_router: Rename nexthop update function to reflect its typedrivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+14 -110 repliesApplied
9/14mlxsw: spectrum_router: Encapsulate nexthop update in a functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+15 -130 repliesApplied
10/14mlxsw: spectrum_router: Break nexthop group entry validation to a separate functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+25 -110 repliesApplied
11/14mlxsw: spectrum_router: Avoid unnecessary neighbour updatesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+4 -00 repliesApplied
12/14mlxsw: spectrum_router: Create per-ASIC router operationsdrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+41 -100 repliesApplied
13/14mlxsw: spectrum_router: Encode adjacency group size ranges in an arraydrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+44 -210 repliesApplied
14/14mlxsw: spectrum_router: Add Spectrum-{2, 3} adjacency group size rangesdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h+32 -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: Preparations for resilient nexthop groups

From: Ido Schimmel <[email protected]>

This patchset contains preparations for resilient nexthop groups support in mlxsw. A follow-up patchset will add support and selftests. Most of the patches are trivial and small to make review easier.

Patchset overview:

Patch #1 removes RTNL assertion in nexthop notifier block since it is not needed. The assertion will trigger when mlxsw starts processing notifications related to resilient groups as not all are emitted with RTNL held.

Patches #2-#9 gradually add support for nexthops with trap action. Up until now mlxsw did not program nexthops whose neighbour entry was not resolved. This will not work with resilient groups as their size is fixed and the nexthop mapped to each bucket is determined by the nexthop code. Therefore, nexthops whose neighbour entry is not resolved will be programmed to trap packets to the CPU in order to trigger neighbour resolution.

Patch #10 is a non-functional change to allow for code reuse between regular nexthop groups and resilient ones.

Patch #11 avoids unnecessary neighbour updates in hardware. See the commit message for a detailed explanation.

Patches #12-#14 add support for additional nexthop group sizes that are supported by Spectrum-{2,3} ASICs.

Ido Schimmel (14):
mlxsw: spectrum_router: Remove RTNL assertion
mlxsw: spectrum_router: Consolidate nexthop helpers
mlxsw: spectrum_router: Only provide MAC address for valid nexthops
mlxsw: spectrum_router: Adjust comments on nexthop fields
mlxsw: spectrum_router: Introduce nexthop action field
mlxsw: spectrum_router: Prepare for nexthops with trap action
mlxsw: spectrum_router: Add nexthop trap action support
mlxsw: spectrum_router: Rename nexthop update function to reflect its
type
mlxsw: spectrum_router: Encapsulate nexthop update in a function
mlxsw: spectrum_router: Break nexthop group entry validation to a
separate function
mlxsw: spectrum_router: Avoid unnecessary neighbour updates
mlxsw: spectrum_router: Create per-ASIC router operations
mlxsw: spectrum_router: Encode adjacency group size ranges in an array
mlxsw: spectrum_router: Add Spectrum-{2, 3} adjacency group size
ranges

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |   6 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   8 +-
 .../ethernet/mellanox/mlxsw/spectrum_dpipe.c  |  19 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 277 +++++++++++++-----
 .../ethernet/mellanox/mlxsw/spectrum_router.h |   9 +-
 5 files changed, 218 insertions(+), 101 deletions(-)
Signature · 1 line
2.29.2