10 #ifndef _RTE_RING_CORE_H_ 11 #define _RTE_RING_CORE_H_ 32 #include <rte_config.h> 41 #define RTE_TAILQ_RING_NAME "RTE_RING" 51 #define RTE_RING_MZ_PREFIX "RG_" 53 #define RTE_RING_NAMESIZE (RTE_MEMZONE_NAMESIZE - \ 54 sizeof(RTE_RING_MZ_PREFIX) + 1) 70 volatile RTE_ATOMIC(uint32_t) head;
71 volatile RTE_ATOMIC(uint32_t) tail;
80 union __rte_ring_rts_poscnt {
82 alignas(
sizeof(uint64_t)) RTE_ATOMIC(uint64_t) raw;
89 struct rte_ring_rts_headtail {
90 volatile union __rte_ring_rts_poscnt tail;
93 volatile union __rte_ring_rts_poscnt head;
96 union __rte_ring_hts_pos {
98 alignas(
sizeof(uint64_t)) RTE_ATOMIC(uint64_t) raw;
100 RTE_ATOMIC(uint32_t) head;
101 RTE_ATOMIC(uint32_t) tail;
105 struct rte_ring_hts_headtail {
106 volatile union __rte_ring_hts_pos ht;
135 struct rte_ring_hts_headtail hts_prod;
136 struct rte_ring_rts_headtail rts_prod;
144 struct rte_ring_hts_headtail hts_cons;
145 struct rte_ring_rts_headtail rts_cons;
151 #define RING_F_SP_ENQ 0x0001 152 #define RING_F_SC_DEQ 0x0002 161 #define RING_F_EXACT_SZ 0x0004 162 #define RTE_RING_SZ_MASK (0x7fffffffU) 164 #define RING_F_MP_RTS_ENQ 0x0008 165 #define RING_F_MC_RTS_DEQ 0x0010 167 #define RING_F_MP_HTS_ENQ 0x0020 168 #define RING_F_MC_HTS_DEQ 0x0040
const struct rte_memzone * memzone
#define RTE_RING_NAMESIZE
enum rte_ring_sync_type sync_type