Skip to content

mlxsw: Add support for new multipath hash policies

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

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: Add notifications when multipath hash field changenet/ipv4/sysctl_net_ipv4.c net/ipv6/sysctl_net_ipv6.c+34 -20 repliesApplied
2/7mlxsw: spectrum_router: Replace if statement with a switch statementdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+38 -310 repliesApplied
3/7mlxsw: spectrum_router: Move multipath hash configuration to a bitmapdrivers/net/ethernet/mellanox/mlxsw/reg.h drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+64 -800 repliesApplied
4/7mlxsw: reg: Add inner packet fields to RECRv2 registerdrivers/net/ethernet/mellanox/mlxsw/reg.h+42 -00 repliesApplied
5/7mlxsw: spectrum_outer: Factor out helper for common outer fieldsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+28 -200 repliesApplied
6/7mlxsw: spectrum_router: Add support for inner layer 3 multipath hash policydrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+41 -00 repliesApplied
7/7mlxsw: spectrum_router: Add support for custom multipath hash policydrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+85 -00 repliesApplied

Reviews trailers per patch

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

PatchPetr Machata
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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 0/7] mlxsw: Add support for new multipath hash policies

From: Ido Schimmel <[email protected]>

This patchset adds support for two new multipath hash policies in mlxsw.

Patch #1 emits net events whenever the net.ipv{4,6}.fib_multipath_hash_fields sysctls are changed. This allows listeners to react to changes in the packet fields used for the computation of the multipath hash.

Patches #2-#3 refactor the code in mlxsw that is responsible for the configuration of the multipath hash, so that it will be easier to extend for the two new policies.

Patch #4 adds the register fields required to support the new policies.

Patch #5-#7 add support for inner layer 3 and custom multipath hash policies.

Tested using following forwarding selftests:

* custom_multipath_hash.sh
* gre_custom_multipath_hash.sh
* gre_inner_v4_multipath.sh
* gre_inner_v6_multipath.sh

Ido Schimmel (7):
net: Add notifications when multipath hash field change
mlxsw: spectrum_router: Replace if statement with a switch statement
mlxsw: spectrum_router: Move multipath hash configuration to a bitmap
mlxsw: reg: Add inner packet fields to RECRv2 register
mlxsw: spectrum_outer: Factor out helper for common outer fields
mlxsw: spectrum_router: Add support for inner layer 3 multipath hash
policy
mlxsw: spectrum_router: Add support for custom multipath hash policy

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  84 +++---
 .../ethernet/mellanox/mlxsw/spectrum_router.c | 239 +++++++++++++++---
 net/ipv4/sysctl_net_ipv4.c                    |  18 +-
 net/ipv6/sysctl_net_ipv6.c                    |  18 +-
 4 files changed, 279 insertions(+), 80 deletions(-)
Signature · 1 line
2.31.1