summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Lundquist <dustin@null-ptr.net>2018-02-13 08:58:56 -0800
committerThomas Monjalon <thomas@monjalon.net>2018-02-13 23:21:33 +0100
commitec94968ed4c53d7fa16a49b7243ece10b93ab8ba (patch)
tree6602f04330a9b38b6d035b900a0f6964a5dcbf45
parent3344fb8fa4dd285647730fb3d8eba9ea12ca2d79 (diff)
downloaddpdk-draft-windows-ec94968ed4c53d7fa16a49b7243ece10b93ab8ba.zip
dpdk-draft-windows-ec94968ed4c53d7fa16a49b7243ece10b93ab8ba.tar.gz
dpdk-draft-windows-ec94968ed4c53d7fa16a49b7243ece10b93ab8ba.tar.xz
examples/exception_path: align stats on cache line
Align stats structure to cache line to prevent bouncing per CPU stats structure between cache lines. Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Dustin Lundquist <dustin@null-ptr.net> Acked-by: Remy Horton <remy.horton@intel.com>
-rw-r--r--examples/exception_path/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c
index 280a504..3e5b1e7 100644
--- a/examples/exception_path/main.c
+++ b/examples/exception_path/main.c
@@ -108,7 +108,7 @@ struct stats {
uint64_t rx;
uint64_t tx;
uint64_t dropped;
-};
+} __rte_cache_aligned;
/* Array of lcore-specific stats */
static struct stats lcore_stats[RTE_MAX_LCORE];