net: align gnet_stats_basic_cpu struct
Subsystems (2)
PATCH 1/1 net: align gnet_stats_basic_cpu struct
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 <[email protected]>
--- include/net/gen_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/gen_stats.h +1 -1
@@ -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 ;
Signature · 1 line
2.19.1.1215.g8438c0b245-goog
From: Eric Dumazet <[email protected]>
Date: Fri, 16 Nov 2018 07:43:29 -0800
Quoted 4 lines
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 <[email protected]>
Applied.