mbox series

[v2,net,0/2] ipv4: avoid pathological hash tables

Message ID 20220119100413.4077866-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series ipv4: avoid pathological hash tables | expand

Message

Eric Dumazet Jan. 19, 2022, 10:04 a.m. UTC
From: Eric Dumazet <edumazet@google.com>

This series speeds up netns dismantles on hosts
having many active netns, by making sure two hash tables
used for IPV4 fib contains uniformly spread items.

v2: changed second patch to add fib_info_laddrhash_bucket()
    for consistency (David Ahern suggestion).

Eric Dumazet (2):
  ipv4: avoid quadratic behavior in netns dismantle
  ipv4: add net_hash_mix() dispersion to fib_info_laddrhash keys

 net/ipv4/fib_semantics.c | 65 ++++++++++++++++++++--------------------
 1 file changed, 32 insertions(+), 33 deletions(-)

Comments

Jakub Kicinski Jan. 19, 2022, 6:24 p.m. UTC | #1
On Wed, 19 Jan 2022 02:04:11 -0800 Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>
> 
> This series speeds up netns dismantles on hosts
> having many active netns, by making sure two hash tables
> used for IPV4 fib contains uniformly spread items.
> 
> v2: changed second patch to add fib_info_laddrhash_bucket()
>     for consistency (David Ahern suggestion).

Applied, thanks! (the bot does not want to respond for some reason)