[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230414190608.3c21f44f@kernel.org>
Date: Fri, 14 Apr 2023 19:06:08 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: linux-hyperv@...r.kernel.org, netdev@...r.kernel.org,
decui@...rosoft.com, kys@...rosoft.com, paulros@...rosoft.com,
olaf@...fle.de, vkuznets@...hat.com, davem@...emloft.net,
wei.liu@...nel.org, edumazet@...gle.com, pabeni@...hat.com,
leon@...nel.org, longli@...rosoft.com, ssengar@...ux.microsoft.com,
linux-rdma@...r.kernel.org, daniel@...earbox.net,
john.fastabend@...il.com, bpf@...r.kernel.org, ast@...nel.org,
sharmaajay@...rosoft.com, hawk@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V3,net-next, 3/4] net: mana: Enable RX path to handle
various MTU sizes
On Wed, 12 Apr 2023 14:16:02 -0700 Haiyang Zhang wrote:
> + } else if (rxq->alloc_size > PAGE_SIZE) {
> + if (is_napi)
> + va = napi_alloc_frag(rxq->alloc_size);
Allocating frag larger than a page is not safe.
Frag allocator falls back to allocating single pages, doesn't it?
Powered by blists - more mailing lists