Skip to content

Commit

Permalink
nfp: switch to dev_alloc_page()
Browse files Browse the repository at this point in the history
Use the dev_alloc_page() networking helper to allocate pages
for RX packets.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Nov 2, 2017
1 parent 43b4524 commit 790a399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/netronome/nfp/nfp_net_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ static void *nfp_net_napi_alloc_one(struct nfp_net_dp *dp, dma_addr_t *dma_addr)
} else {
struct page *page;

page = alloc_page(GFP_ATOMIC | __GFP_COLD);
page = dev_alloc_page();
frag = page ? page_address(page) : NULL;
}
if (!frag) {
Expand Down

0 comments on commit 790a399

Please sign in to comment.