[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250227182256.73650a0e@kernel.org>
Date: Thu, 27 Feb 2025 18:22:56 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: "David S. Miller" <davem@...emloft.net>, David Ahern
<dsahern@...nel.org>, Eric Dumazet <edumazet@...gle.com>, "Paolo Abeni"
<pabeni@...hat.com>, Simon Horman <horms@...nel.org>, Kuniyuki Iwashima
<kuni1840@...il.com>, <netdev@...r.kernel.org>
Subject: Re: [PATCH v2 net-next 02/12] ipv4: fib: Allocate fib_info_hash[]
and fib_info_laddrhash[] by kvmalloc_array().
On Wed, 26 Feb 2025 11:25:46 -0800 Kuniyuki Iwashima wrote:
> + /* The second half is used for prefsrc */
> + return kvmalloc_array((1 << hash_bits) * 2,
> + sizeof(struct hlist_head *),
> + GFP_KERNEL | __GFP_ZERO);
Sorry for the nit but: kvmalloc_array(, GFP_ZERO) == kvcalloc(), right?
Powered by blists - more mailing lists