Re: [PATCH v3] net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag

From: Jakub Kicinski
Date: Mon Jun 06 2022 - 17:34:52 EST


On Sun, 5 Jun 2022 11:12:37 +0800 Chen Lin wrote:
> + new_data = (void *)__get_free_pages(GFP_ATOMIC |
> + __GFP_COMP | __GFP_NOWARN,
> + get_order(mtk_max_frag_size(MTK_MAX_LRO_RX_LENGTH)));

Please make this a helper which takes the gfp flags.