bpf: align struct bpf_prog_stats
Subsystems (4)
PATCH 1/1 bpf: align struct bpf_prog_stats
Do not risk spanning these small structures on two cache lines.
Signed-off-by Eric Dumazet <[email protected]>
--- include/linux/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/bpf.h +1 -1
@@ -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;
Signature · 1 line
2.23.0.700.g56cf767bdb-goog
Quoted 3 lines · Eric Dumazet
Do not risk spanning these small structures on two cache lines.
Signed-off-by Eric Dumazet <[email protected]>
Applied, thanks!