mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-14 02:04:43 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue