Message ID | 20210519120824.302191-1-idosch@idosch.org (mailing list archive) |
---|---|
Headers | show |
Series | mlxsw: Add support for new multipath hash policies | expand |
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Wed, 19 May 2021 15:08:17 +0300 you wrote: > From: Ido Schimmel <idosch@nvidia.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. > > [...] Here is the summary with links: - [net-next,1/7] net: Add notifications when multipath hash field change https://git.kernel.org/netdev/net-next/c/eb0e4d59b6ed - [net-next,2/7] mlxsw: spectrum_router: Replace if statement with a switch statement https://git.kernel.org/netdev/net-next/c/7725c1c8f732 - [net-next,3/7] mlxsw: spectrum_router: Move multipath hash configuration to a bitmap https://git.kernel.org/netdev/net-next/c/9d23d3eb6f41 - [net-next,4/7] mlxsw: reg: Add inner packet fields to RECRv2 register https://git.kernel.org/netdev/net-next/c/28bc824807a5 - [net-next,5/7] mlxsw: spectrum_outer: Factor out helper for common outer fields https://git.kernel.org/netdev/net-next/c/b7b8f435ea3b - [net-next,6/7] mlxsw: spectrum_router: Add support for inner layer 3 multipath hash policy https://git.kernel.org/netdev/net-next/c/01848e05f8bb - [net-next,7/7] mlxsw: spectrum_router: Add support for custom multipath hash policy https://git.kernel.org/netdev/net-next/c/daeabf89eb89 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
From: Ido Schimmel <idosch@nvidia.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(-)