summaryrefslogtreecommitdiffstats
path: root/include/net/gen_stats.h
diff options
context:
space:
mode:
authorEric Dumazet2018-11-16 16:43:29 +0100
committerDavid S. Miller2018-11-18 06:37:29 +0100
commit001c96db0181263740215a7f5fec7e937b800a94 (patch)
treec10f5fec5c3724ce146ada86a90064a4a9200d90 /include/net/gen_stats.h
parentnet: align pcpu_sw_netstats and pcpu_lstats structs (diff)
downloadkernel-qcow2-linux-001c96db0181263740215a7f5fec7e937b800a94.tar.gz
kernel-qcow2-linux-001c96db0181263740215a7f5fec7e937b800a94.tar.xz
kernel-qcow2-linux-001c96db0181263740215a7f5fec7e937b800a94.zip
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>
Diffstat (limited to 'include/net/gen_stats.h')
-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;