net: add __netdev_alloc_pcpu_stats() to indicate gfp flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Nov 2015 13:31:18 +0000 (14:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Nov 2015 22:47:32 +0000 (23:47 +0100)
commitaabc92bbe3cfe4c545f8ccdaaeeea012a46f0abf
tree9d6f868aec5c556a43c38e73d536005dfbe4a475
parent74ec4d55c4d243330d93fc52e23e37d2e76548ba
net: add __netdev_alloc_pcpu_stats() to indicate gfp flags

nf_tables may create percpu counters from the packet path through its
dynamic set instantiation infrastructure, so we need a way to allocate
this through GFP_ATOMIC.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h