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

Jakub Kicinski
2023-04-15T02:06:14Z

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?