[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210519120824.302191-1-idosch@idosch.org>
Date: Wed, 19 May 2021 15:08:17 +0300
From: Ido Schimmel <idosch@...sch.org>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, jiri@...dia.com,
petrm@...dia.com, dsahern@...il.com, mlxsw@...dia.com,
Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 0/7] mlxsw: Add support for new multipath hash policies
From: Ido Schimmel <idosch@...dia.com>
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(-)
--
2.31.1
Powered by blists - more mailing lists