projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f959c
)
netfilter: conntrack: align nf_conn on cacheline boundary
author
Florian Westphal
<fw@strlen.de>
Fri, 10 Jun 2016 20:25:22 +0000
(22:25 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 23 Jun 2016 11:31:54 +0000
(13:31 +0200)
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>
net/netfilter/nf_conntrack_core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_conntrack_core.c
b/net/netfilter/nf_conntrack_core.c
index db2312eeb2a47c44db0f0ac5a529a10a0a8f8d2f..2903bb43547c65eb873973455923eb586922c9fc 100644
(file)
--- 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;