netfilter: x_tables: align per cpu xt_counter
authorEric Dumazet <edumazet@google.com>
Tue, 16 Jun 2015 01:10:13 +0000 (18:10 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 18 Jun 2015 11:05:45 +0000 (13:05 +0200)
commita1a56aaa0735c7821e85c37268a7c12e132415cb
tree2d8d0372fb798896d8a93aa1ba6d493bbb901026
parent01555e74bde51444c6898ef1800fb2bc697d479e
netfilter: x_tables: align per cpu xt_counter

Let's force a 16 bytes alignment on xt_counter percpu allocations,
so that bytes and packets sit in same cache line.

xt_counter being exported to user space, we cannot add __align(16) on
the structure itself.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/x_tables.h