]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv4: remove fib_devindex_hashfn()
authorEric Dumazet <edumazet@google.com>
Fri, 4 Oct 2024 13:47:17 +0000 (13:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Oct 2024 23:38:58 +0000 (16:38 -0700)
commit8a0f62fdeb9ea66ad3d0e959c7c4addbabeac1be
tree466eeba30795351716aef665cae9a4899fac8f50
parent1405981bbba0796530311d07a67bf58228cc0fcc
ipv4: remove fib_devindex_hashfn()

fib_devindex_hashfn() converts a 32bit ifindex value to a 8bit hash.

It makes no sense doing this from fib_info_hashfn() and
fib_find_info_nh().

It is better to keep as many bits as possible to let
fib_info_hashfn_result() have better spread.

Only fib_info_devhash_bucket() needs to make this operation,
we can 'inline' trivial fib_devindex_hashfn() in it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20241004134720.579244-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_semantics.c