]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
netfilter: x_tables: pass xt_counters struct instead of packet counter
authorFlorian Westphal <fw@strlen.de>
Tue, 10 Jan 2017 13:32:15 +0000 (08:32 -0500)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 12:19:01 +0000 (12:19 +0000)
commit3e76b2afc1bc2274d7f394bddd3e257a396de9aa
tree9f9dcdb26f61b18910425074d55f25db050bf997
parent5b94825225010274599415214ee5d7dc01d6177a
netfilter: x_tables: pass xt_counters struct instead of packet counter

BugLink: https://bugs.launchpad.net/bugs/1640786
On SMP we overload the packet counter (unsigned long) to contain
percpu offset.  Hide this from callers and pass xt_counters address
instead.

Preparation patch to allocate the percpu counters in page-sized batch
chunks.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
(backported from commit 4d31eef5176df06f218201bc9c0ce40babb41660)
Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
include/linux/netfilter/x_tables.h
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c
net/netfilter/x_tables.c