summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-11-16 07:43:29 -0800
committerDavid S. Miller <davem@davemloft.net>2018-11-17 21:37:29 -0800
commit001c96db0181263740215a7f5fec7e937b800a94 (patch)
treec10f5fec5c3724ce146ada86a90064a4a9200d90
parent9a5ee462302512b7f3929c19f0711715613ac418 (diff)
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>
-rw-r--r--include/net/gen_stats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h
index 946bd53a9f81..ca23860adbb9 100644
--- a/include/net/gen_stats.h
+++ b/include/net/gen_stats.h
@@ -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;