]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ipv4,ipv6: Pass multipath hash computation through a helper
authorPetr Machata <petrm@nvidia.com>
Fri, 7 Jun 2024 15:13:53 +0000 (17:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jun 2024 23:42:11 +0000 (16:42 -0700)
commit3e453ca122d483eb519f934b6624215f0536301c
tree9bd433359821190dbbe8849e29e5411667090300
parent32b06603f8790b34835af43d259152eb57827413
net: ipv4,ipv6: Pass multipath hash computation through a helper

The following patches will add a sysctl to control multipath hash
seed. In order to centralize the hash computation, add a helper,
fib_multipath_hash_from_keys(), and have all IPv4 and IPv6 route.c
invocations of flow_hash_from_keys() go through this helper instead.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240607151357.421181-2-petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip_fib.h
net/ipv4/route.c
net/ipv6/route.c