OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6309855
)
bpf: Align struct bpf_prog_stats
author
Eric Dumazet
<edumazet@google.com>
Fri, 11 Oct 2019 18:11:40 +0000
(11:11 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Fri, 11 Oct 2019 20:25:09 +0000
(22:25 +0200)
Do not risk spanning these small structures on two cache lines.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link:
https://lore.kernel.org/bpf/20191011181140.2898-1-edumazet@google.com
include/linux/bpf.h
patch
|
blob
|
history
diff --git
a/include/linux/bpf.h
b/include/linux/bpf.h
index
5b9d223
..
282e28b
100644
(file)
--- a/
include/linux/bpf.h
+++ b/
include/linux/bpf.h
@@
-363,7
+363,7
@@
struct bpf_prog_stats {
u64 cnt;
u64 nsecs;
struct u64_stats_sync syncp;
-};
+}
__aligned(2 * sizeof(u64))
;
struct bpf_prog_aux {
atomic_t refcnt;