Eric Dumazet
79eb15da3c
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 >
2022-01-19 08:14:40 -08:00
..
2021-07-22 16:19:03 +02:00
2021-11-04 21:04:25 +09:00
2021-11-19 11:23:23 +00:00
2021-12-07 20:44:58 -08:00
2021-07-23 14:20:25 +01:00
2021-10-24 13:59:45 +01:00
2022-01-09 17:00:17 -08:00
2022-01-05 14:36:10 -08:00
2022-01-07 08:41:38 +01:00
2021-11-01 14:10:00 -07:00
2022-01-12 14:44:18 +00:00
2021-12-31 14:35:40 +00:00
2022-01-05 21:49:47 +01:00
2021-11-08 03:29:52 +01:00
2022-01-18 19:28:29 -08:00
2021-11-23 20:16:22 -08:00
2021-12-31 14:35:40 +00:00
2022-01-06 11:59:10 +00:00
2021-11-24 17:21:42 -08:00
2022-01-06 12:33:35 +00:00
2021-11-29 12:12:36 +00:00
2021-11-16 13:20:45 +00:00
2022-01-19 08:14:40 -08:00
2022-01-12 13:56:07 -08:00
2021-12-29 08:48:14 -08:00
2021-12-29 08:48:14 -08:00
2021-12-10 06:38:27 -08:00
2021-12-10 19:43:00 -08:00
2022-01-05 14:36:10 -08:00
2021-10-20 14:27:40 +01:00
2022-01-11 20:26:36 -08:00
2021-12-02 11:44:56 -08:00
2022-01-09 17:00:17 -08:00
2021-12-29 17:53:24 -08:00
2022-01-10 21:09:43 -08:00
2021-08-30 12:23:18 +01:00
2021-12-29 08:48:14 -08:00
2022-01-07 14:11:05 +00:00
2022-01-19 14:11:30 +00:00
2022-01-09 17:00:17 -08:00
2022-01-07 19:11:55 -08:00
2021-12-20 11:49:51 +00:00
2021-09-28 17:36:43 -07:00
2021-12-16 16:13:19 -08:00
2021-12-20 11:02:38 +01:00
2021-12-29 08:48:14 -08:00
2021-11-29 15:40:02 +00:00
2022-01-13 11:06:42 -08:00
2022-01-05 14:36:10 -08:00
2022-01-16 12:30:28 +00:00
2021-11-09 01:05:28 +01:00
2021-11-27 10:33:55 -08:00
2021-12-07 20:44:58 -08:00
2022-01-05 14:36:10 -08:00
2022-01-17 13:07:47 +00:00
2022-01-14 18:31:37 -08:00
2021-12-31 14:35:40 +00:00
2021-12-21 07:41:52 -08:00
2021-12-09 18:35:11 -08:00
2022-01-05 14:36:10 -08:00
2022-01-11 20:36:08 -08:00
2021-11-20 12:25:57 +00:00
2021-12-10 06:38:26 -08:00
2021-07-29 15:06:49 +01:00
2022-01-06 12:18:08 +00:00
2021-11-09 10:02:50 -08:00