[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230624152826.10e3789b@kernel.org>
Date: Sat, 24 Jun 2023 15:28:26 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Julia Lawall <Julia.Lawall@...ia.fr>
Cc: Veerasenareddy Burru <vburru@...vell.com>, keescook@...omium.org,
kernel-janitors@...r.kernel.org, Abhijit Ayarekar <aayarekar@...vell.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 02/26] octeon_ep: use array_size
On Fri, 23 Jun 2023 23:14:33 +0200 Julia Lawall wrote:
> - oq->buff_info = vzalloc(oq->max_count * OCTEP_OQ_RECVBUF_SIZE);
> + oq->buff_info = vzalloc(array_size(oq->max_count, OCTEP_OQ_RECVBUF_SIZE));
vcalloc seems to exist, is there a reason array_size() is preferred?
--
pw-bot: cr
Powered by blists - more mailing lists