netfilter: x_tables: align per cpu xt_counter
authorEric Dumazet <[email protected]>
Tue, 16 Jun 2015 01:10:13 +0000 (18:10 -0700)
committerPablo Neira Ayuso <[email protected]>
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 <[email protected]>
Cc: Florian Westphal <[email protected]>
Acked-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
include/linux/netfilter/x_tables.h