[20.05,03/15] net/memif: use common macros for cache line marker
Checks
Commit Message
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(-)
@@ -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);