]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82995d40f5001a2b63eee8f0306de426873db0f6
tree2d8d0372fb798896d8a93aa1ba6d493bbb901026
parent18c403dac02b2b926628c7ba1a6e2c6f2cafb7e2
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