[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250228040200.93325-1-kuniyu@amazon.com>
Date: Thu, 27 Feb 2025 20:02:00 -0800
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <kuba@...nel.org>
CC: <davem@...emloft.net>, <dsahern@...nel.org>, <edumazet@...gle.com>,
<horms@...nel.org>, <kuni1840@...il.com>, <kuniyu@...zon.com>,
<netdev@...r.kernel.org>, <pabeni@...hat.com>
Subject: Re: [PATCH v2 net-next 02/12] ipv4: fib: Allocate fib_info_hash[] and fib_info_laddrhash[] by kvmalloc_array().
From: Jakub Kicinski <kuba@...nel.org>
Date: Thu, 27 Feb 2025 18:22:56 -0800
> 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?
Aha, I forgot that and grepped kvzmalloc_array :)
Will use kvcalloc() in v3.
Thanks!
Powered by blists - more mailing lists