Re: [PATCH v2] tun: avoid high-order page allocation for packet header

From: Eric Dumazet
Date: Tue Aug 01 2023 - 05:40:21 EST


On Tue, Aug 1, 2023 at 1:07 AM Tahsin Erdogan <trdgn@xxxxxxxxxx> wrote:
>
> When GSO is not enabled and a packet is transmitted via writev(), all
> payload is treated as header which requires a contiguous memory allocation.
> This allocation request is harder to satisfy, and may even fail if there is
> enough fragmentation.
>
> Note that sendmsg() code path limits the linear copy length, so this change
> makes writev() and sendmsg() more consistent.
>
> Signed-off-by: Tahsin Erdogan <trdgn@xxxxxxxxxx>
> ---

I will have to tweak one existing packetdrill test, nothing major.

Tested-by: Eric Dumazet <edumazet@xxxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks.