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:
Eric Dumazet 2018-11-16 07:43:29 -08:00 committed by David S. Miller
parent 9a5ee46230
commit 001c96db01
1 changed files with 1 additions and 1 deletions

View File

@ -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;