example exception_path: cache align per CPU stats
PATCH v2 1/1 example exception_path: cache align per CPU stats
Align stats structure to cache line to prevent bouncing per CPU stats structure between cache lines.
Fixes af75078fece3 ("first public release")
Signed-off-by Dustin Lundquist <[email protected]>
---
v2:
* Include fixes tag
Verified alignment of lcore_stats array elements using gdb.
examples/exception_path/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/exception_path/main.c +1 -1
@@ -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 ];
--
2.11.0
13/02/2018 17:58, Dustin Lundquist:
Quoted 6 lines
Align stats structure to cache line to prevent bouncing per CPU stats structure between cache lines.
Fixes af75078fece3 ("first public release")Signed-off-by Dustin Lundquist <[email protected]>
Acked-by Remy Horton <[email protected]>
Applied, thanks