Re: [PATCH net] net/core/dev.c: Ensure pfmemalloc skbs are correctly handled when receiving

2021-04-16 Thread Eric Dumazet
On Sat, Apr 17, 2021 at 2:08 AM Xie He wrote: > > When an skb is allocated by "__netdev_alloc_skb" in "net/core/skbuff.c", > if "sk_memalloc_socks()" is true, and if there's not sufficient memory, > the skb would be allocated using emergency memory reserves. This kind of > skbs are called

[PATCH net] net/core/dev.c: Ensure pfmemalloc skbs are correctly handled when receiving

2021-04-16 Thread Xie He
When an skb is allocated by "__netdev_alloc_skb" in "net/core/skbuff.c", if "sk_memalloc_socks()" is true, and if there's not sufficient memory, the skb would be allocated using emergency memory reserves. This kind of skbs are called pfmemalloc skbs. pfmemalloc skbs must be specially handled in