projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a5ee46
)
net: align gnet_stats_basic_cpu struct
author
Eric Dumazet
<edumazet@google.com>
Fri, 16 Nov 2018 15:43:29 +0000
(07:43 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 18 Nov 2018 05:37:29 +0000
(21:37 -0800)
This structure is small (12 or 16 bytes depending on 64bit
or 32bit kernels), but we do not want it spanning two cache lines.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gen_stats.h
patch
|
blob
|
history
diff --git
a/include/net/gen_stats.h
b/include/net/gen_stats.h
index 946bd53a9f81dff5946579514360a9e5eaf3489b..ca23860adbb956fcfff3605068fdedf59073ce1a 100644
(file)
--- a/
include/net/gen_stats.h
+++ b/
include/net/gen_stats.h
@@
-10,7
+10,7
@@
struct gnet_stats_basic_cpu {
struct gnet_stats_basic_packed bstats;
struct u64_stats_sync syncp;
-};
+}
__aligned(2 * sizeof(u64))
;
struct net_rate_estimator;