diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-02 01:31:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 20:27:11 +0900 |
commit | 790a399171831d31c8016a27294ef69130d3e7cc (patch) | |
tree | 50db3ae3705954ec4194856594593fcd5a6c66f2 /drivers | |
parent | 43b45245e5a6c274f374ecb49e5bca39f28dbfad (diff) | |
download | linux-790a399171831d31c8016a27294ef69130d3e7cc.tar.bz2 |
nfp: switch to dev_alloc_page()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index eddf850a6a7f..7147335a8b36 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -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) { |