提交 001c96db 编写于 作者: E Eric Dumazet 提交者: David S. Miller

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: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9a5ee462
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
struct gnet_stats_basic_cpu { struct gnet_stats_basic_cpu {
struct gnet_stats_basic_packed bstats; struct gnet_stats_basic_packed bstats;
struct u64_stats_sync syncp; struct u64_stats_sync syncp;
}; } __aligned(2 * sizeof(u64));
struct net_rate_estimator; struct net_rate_estimator;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册