diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-02 09:31:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 12:27:11 +0100 |
commit | 790a399171831d31c8016a27294ef69130d3e7cc (patch) | |
tree | 50db3ae3705954ec4194856594593fcd5a6c66f2 /drivers | |
parent | nfp: bpf: fall back to core NIC app if BPF not selected (diff) | |
download | linux-790a399171831d31c8016a27294ef69130d3e7cc.tar.xz linux-790a399171831d31c8016a27294ef69130d3e7cc.zip |
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) { |