mlxsw: Add support for new multipath hash policies
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
Patches in v1 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net: Add notifications when multipath hash field changenet/ net/ | +34 | 0 replies | Applied |
| 2/7 | mlxsw: spectrum_router: Replace if statement with a switch statementdrivers/ | +38 | 0 replies | Applied |
| 3/7 | mlxsw: spectrum_router: Move multipath hash configuration to a bitmapdrivers/ drivers/ | +64 | 0 replies | Applied |
| 4/7 | mlxsw: reg: Add inner packet fields to RECRv2 registerdrivers/ | +42 | 0 replies | Applied |
| 5/7 | mlxsw: spectrum_outer: Factor out helper for common outer fieldsdrivers/ | +28 | 0 replies | Applied |
| 6/7 | mlxsw: spectrum_router: Add support for inner layer 3 multipath hash policydrivers/ | +41 | 0 replies | Applied |
| 7/7 | mlxsw: spectrum_router: Add support for custom multipath hash policydrivers/ | +85 | 0 replies | Applied |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Petr Machata |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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