diff options
author | Florian Westphal <fw@strlen.de> | 2016-06-10 22:25:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-23 13:31:54 +0200 |
commit | 5a75cdebabc4576ca31f497a9272ac558421b119 (patch) | |
tree | 838b253002980f5b1b0f6a0281e2121079725d89 | |
parent | 36f959c491abc7e0acf94b631a6d7a3e2e3699b0 (diff) | |
download | linux-5a75cdebabc4576ca31f497a9272ac558421b119.tar.gz linux-5a75cdebabc4576ca31f497a9272ac558421b119.tar.bz2 linux-5a75cdebabc4576ca31f497a9272ac558421b119.zip |
netfilter: conntrack: align nf_conn on cacheline boundary
increases struct size by 32 bytes (288 -> 320), but it is the right thing,
else any attempt to (re-)arrange nf_conn members by cacheline won't work.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index db2312eeb2a4..2903bb43547c 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -1731,7 +1731,7 @@ int nf_conntrack_init_start(void) nf_conntrack_cachep = kmem_cache_create("nf_conntrack", sizeof(struct nf_conn), 0, - SLAB_DESTROY_BY_RCU, NULL); + SLAB_DESTROY_BY_RCU | SLAB_HWCACHE_ALIGN, NULL); if (!nf_conntrack_cachep) goto err_cachep; |