git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3344fb8
)
examples/exception_path: align stats on cache line
author
Dustin Lundquist
<dustin@null-ptr.net>
Tue, 13 Feb 2018 16:58:56 +0000
(08:58 -0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 13 Feb 2018 22:21:33 +0000
(23:21 +0100)
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>
examples/exception_path/main.c
patch
|
blob
|
history
diff --git
a/examples/exception_path/main.c
b/examples/exception_path/main.c
index
280a504
..
3e5b1e7
100644
(file)
--- 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];