mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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 <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9a5ee46230
commit
001c96db01
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user