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:
bf9fada
)
net/memif: use common macros for cache line marker
author
Thomas Monjalon
<thomas@monjalon.net>
Sun, 9 Feb 2020 12:14:15 +0000
(13:14 +0100)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/drivers/net/memif/memif.h
b/drivers/net/memif/memif.h
index
a4d88c0
..
b912308
100644
(file)
--- 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);