Home
last modified time | relevance | path

Searched hist:"79 eb15da3cd68f04b06edf73f9bbafa70a06871f" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Dfib_semantics.cdiff 79eb15da3cd68f04b06edf73f9bbafa70a06871f Wed Jan 19 11:04:13 CET 2022 Eric Dumazet <edumazet@google.com> ipv4: add net_hash_mix() dispersion to fib_info_laddrhash keys

net/ipv4/fib_semantics.c uses a hash table (fib_info_laddrhash)
in which fib_sync_down_addr() can locate fib_info
based on IPv4 local address.

This hash table is resized based on total number of
hashed fib_info, but the hash function is only
using the local address.

For hosts having many active network namespaces,
all fib_info for loopback devices (IPv4 address 127.0.0.1)
are hashed into a single bucket, making netns dismantles
very slow.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>