From df4f5d72f05e42e18b82a817a928334941426511 Mon Sep 17 00:00:00 2001 From: pettershao-ragilenetworks <81281940+pettershao-ragilenetworks@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:25:53 +0800 Subject: [PATCH] Update ctcmac.c --- platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c b/platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c index ea28b561ecaf..277b41c2abf8 100755 --- a/platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c +++ b/platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c @@ -1736,7 +1736,8 @@ static bool ctcmac_new_page(struct ctcmac_priv_rx_q *rxq, struct page *page; dma_addr_t addr; - page = dev_alloc_page(); + //page = dev_alloc_page(); + page = __dev_alloc_pages(GFP_DMA | GFP_ATOMIC | __GFP_NOWARN, 0); if (unlikely(!page)) return false;