aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-10-11 11:11:40 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-10-11 22:25:09 +0200
commit84a081f60db63aaae3665118203506aa09a7f94f (patch)
tree06a3567245faf5988d91f2733c4e68853c0ea695 /include/linux/bpf.h
parentMerge branch 'bpf-romap-known-scalars' (diff)
downloadlinux-dev-84a081f60db63aaae3665118203506aa09a7f94f.tar.xz
linux-dev-84a081f60db63aaae3665118203506aa09a7f94f.zip
bpf: Align struct bpf_prog_stats
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
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r--include/linux/bpf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index 5b9d22338606..282e28bf41ec 100644
--- 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;