Skip to content

Commit 790a399

Browse files
Jakub Kicinskidavem330
authored andcommitted
nfp: switch to dev_alloc_page()
Use the dev_alloc_page() networking helper to allocate pages for RX packets. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 43b4524 commit 790a399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ static void *nfp_net_napi_alloc_one(struct nfp_net_dp *dp, dma_addr_t *dma_addr)
12121212
} else {
12131213
struct page *page;
12141214

1215-
page = alloc_page(GFP_ATOMIC | __GFP_COLD);
1215+
page = dev_alloc_page();
12161216
frag = page ? page_address(page) : NULL;
12171217
}
12181218
if (!frag) {

0 commit comments

Comments
 (0)