[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250630190645.5423949e@kernel.org>
Date: Mon, 30 Jun 2025 19:06:45 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Harshitha Ramamurthy <hramamurthy@...gle.com>
Cc: netdev@...r.kernel.org, jeroendb@...gle.com, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
willemb@...gle.com, bcf@...gle.com, pkaligineedi@...gle.com,
joshwash@...gle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] gve: make IRQ handlers and page allocation
NUMA aware
On Fri, 27 Jun 2025 18:31:41 +0000 Harshitha Ramamurthy wrote:
> - rx->qpl_copy_pool = kvcalloc(rx->qpl_copy_pool_mask + 1,
> - sizeof(rx->qpl_copy_pool[0]),
> - GFP_KERNEL);
> + rx->qpl_copy_pool =
> + kvzalloc_node(array_size(rx->qpl_copy_pool_mask + 1,
> + sizeof(rx->qpl_copy_pool[0])),
> + GFP_KERNEL, priv->numa_node);
>
> if (!rx->qpl_copy_pool) {
kvcalloc_node() exists for more than a year now.
nit: when you respin could you shift the allocation so that the empty
line appears before the kvcalloc_node() call rather than between it
and the error check?
--
pw-bot: cr
Powered by blists - more mailing lists