Subject: Re: netdev_alloc_skb is failing for 16k length

From: Stephen Hemminger <[email-masked]>
Date: Mon, 27 May 2019 07:59:56 -0700

On Mon, 27 May 2019 12:21:51 +0530
Arun Kumar Neelakantam <[email-masked]> wrote:

> Hi team,
> 
> we are using "skb = netdev_alloc_skb(NULL, len);" which is getting 
> failed sometimes for len = 16k.
> 
> I suspect mostly system memory got fragmented and hence atomic memory 
> allocation for 16k is failing, can you please suggest best way to handle 
> this failure case.
> 
> Thanks
> 
> Arun N
> 

If you are handling big frames, then put the data in page size chunks
and use build_skb.