Re: [PATCH V3,net-next, 3/4] net: mana: Enable RX path to handle various MTU sizes

From: Jakub Kicinski
Date: Fri Apr 14 2023 - 22:06:15 EST


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?