From: Thomas Monjalon Date: Mon, 29 Jun 2020 20:57:50 +0000 (+0200) Subject: app/flow-perf: use macro for cache alignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f7a4996c04abe29707e35a6d65b4057fc7c26269;p=dpdk.git app/flow-perf: use macro for cache alignment The macro __rte_cache_aligned is better suited for aligning a structure on a cache line (of any size). Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") Signed-off-by: Thomas Monjalon Acked-by: Wisam Jaddo --- diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index e155e49c37..1ae2856556 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -84,7 +84,7 @@ struct lcore_info { uint64_t tx_drops; uint64_t rx_pkts; struct rte_mbuf *pkts[MAX_PKT_BURST]; -} __attribute__((__aligned__(64))); /* let it be cacheline aligned */ +} __rte_cache_aligned; static struct lcore_info lcore_infos[MAX_LCORES];