ring: fix build with icc
build error:
In file included from .../lib/librte_ring/rte_ring.c(90):
.../lib/librte_ring/rte_ring.h(162):
error #1366: a reduction in alignment without the "packed" attribute
is ignored
} __rte_cache_aligned;
^
Alignment attribute moved to first element of the struct
Fixes: a6619414e0
("ring: make struct and macros type agnostic")
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
62d3216d61
commit
3061d0d961
@ -147,7 +147,7 @@ struct rte_ring {
|
||||
* compatibility requirements, it could be changed to RTE_RING_NAMESIZE
|
||||
* next time the ABI changes
|
||||
*/
|
||||
char name[RTE_MEMZONE_NAMESIZE]; /**< Name of the ring. */
|
||||
char name[RTE_MEMZONE_NAMESIZE] __rte_cache_aligned; /**< Name of the ring. */
|
||||
int flags; /**< Flags supplied at creation. */
|
||||
const struct rte_memzone *memzone;
|
||||
/**< Memzone, if any, containing the rte_ring */
|
||||
@ -159,7 +159,7 @@ struct rte_ring {
|
||||
|
||||
/** Ring consumer status. */
|
||||
struct rte_ring_headtail cons __rte_aligned(CONS_ALIGN);
|
||||
} __rte_cache_aligned;
|
||||
};
|
||||
|
||||
#define RING_F_SP_ENQ 0x0001 /**< The default enqueue is "single-producer". */
|
||||
#define RING_F_SC_DEQ 0x0002 /**< The default dequeue is "single-consumer". */
|
||||
|
Loading…
Reference in New Issue
Block a user