From: Dustin Lundquist Date: Tue, 13 Feb 2018 16:58:56 +0000 (-0800) Subject: examples/exception_path: align stats on cache line X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ec94968ed4c53d7fa16a49b7243ece10b93ab8ba;hp=3344fb8fa4dd285647730fb3d8eba9ea12ca2d79;p=dpdk.git 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 Acked-by: Remy Horton --- diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index 280a50451a..3e5b1e718f 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];