mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
UPSTREAM: bpf: Align struct bpf_prog_stats
Do not risk spanning these small structures on two cache lines. Change-Id: Ie13182cdff956b270296b5999b78c41d77133e23 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
This commit is contained in:
parent
1cea6f1d77
commit
96bdef8718
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue