net/memif: use common macros for cache line marker
authorThomas Monjalon <thomas@monjalon.net>
Sun, 9 Feb 2020 12:14:15 +0000 (13:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 16 Apr 2020 16:07:29 +0000 (18:07 +0200)
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

index a4d88c0..b912308 100644 (file)
@@ -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);