Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c48e442e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: support __alloc_skb to always use GFP_DMA"

parents 5e2398a9 6fe656a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -204,6 +204,9 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
	u8 *data;
	bool pfmemalloc;

	if (IS_ENABLED(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE))
		gfp_mask |= GFP_DMA;

	cache = (flags & SKB_ALLOC_FCLONE)
		? skbuff_fclone_cache : skbuff_head_cache;