[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241004223224.81122-1-kuniyu@amazon.com>
Date: Fri, 4 Oct 2024 15:32:24 -0700
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <edumazet@...gle.com>
CC: <alexandre.ferrieux@...nge.com>, <davem@...emloft.net>,
<dsahern@...nel.org>, <eric.dumazet@...il.com>, <kuba@...nel.org>,
<kuniyu@...zon.com>, <netdev@...r.kernel.org>, <pabeni@...hat.com>
Subject: Re: [PATCH net-next 1/4] ipv4: remove fib_devindex_hashfn()
From: Eric Dumazet <edumazet@...gle.com>
Date: Fri, 4 Oct 2024 13:47:17 +0000
> 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@...gle.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Powered by blists - more mailing lists