[20.05,03/15] net/memif: use common macros for cache line marker
diff mbox series

Message ID 20200210162032.1177478-4-thomas@monjalon.net
State Accepted, archived
Delegated to: David Marchand
Headers show
Series
  • clean-up use of __attribute__
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Thomas Monjalon Feb. 10, 2020, 4:20 p.m. UTC
The macros RTE_MARKER and __rte_cache_aligned can be used
for consistency for describing MEMIF_CACHELINE_ALIGN_MARK.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 drivers/net/memif/memif.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/net/memif/memif.h b/drivers/net/memif/memif.h
index a4d88c044b..b912308904 100644
--- a/drivers/net/memif/memif.h
+++ b/drivers/net/memif/memif.h
@@ -162,7 +162,7 @@  typedef struct __rte_packed {
 } memif_desc_t;
 
 #define MEMIF_CACHELINE_ALIGN_MARK(mark) \
-	uint8_t mark[0] __rte_aligned(RTE_CACHE_LINE_SIZE)
+	RTE_MARKER mark __rte_cache_aligned;
 
 typedef struct {
 	MEMIF_CACHELINE_ALIGN_MARK(cacheline0);