Skip to content

Commit

Permalink
Update ctcmac.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pettershao-ragilenetworks authored Mar 3, 2023
1 parent cdacf13 commit df4f5d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/centec-arm64/tsingma-bsp/src/ctcmac/ctcmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit df4f5d7

Please sign in to comment.