10#ifndef _RTE_RING_CORE_H_
11#define _RTE_RING_CORE_H_
31#include <rte_config.h>
40#define RTE_TAILQ_RING_NAME "RTE_RING"
50#define RTE_RING_MZ_PREFIX "RG_"
52#define RTE_RING_NAMESIZE (RTE_MEMZONE_NAMESIZE - \
53 sizeof(RTE_RING_MZ_PREFIX) + 1)
80union __rte_ring_rts_poscnt {
89struct rte_ring_rts_headtail {
90 volatile union __rte_ring_rts_poscnt tail;
93 volatile union __rte_ring_rts_poscnt head;
96union __rte_ring_hts_pos {
105struct rte_ring_hts_headtail {
106 volatile union __rte_ring_hts_pos ht;
136 struct rte_ring_hts_headtail hts_prod;
137 struct rte_ring_rts_headtail rts_prod;
146 struct rte_ring_hts_headtail hts_cons;
147 struct rte_ring_rts_headtail rts_cons;
153#define RING_F_SP_ENQ 0x0001
154#define RING_F_SC_DEQ 0x0002
163#define RING_F_EXACT_SZ 0x0004
164#define RTE_RING_SZ_MASK (0x7fffffffU)
166#define RING_F_MP_RTS_ENQ 0x0008
167#define RING_F_MC_RTS_DEQ 0x0010
169#define RING_F_MP_HTS_ENQ 0x0020
170#define RING_F_MC_HTS_DEQ 0x0040
__extension__ struct rte_eth_link __rte_aligned(8)
#define RTE_RING_NAMESIZE
@ RTE_RING_QUEUE_VARIABLE
enum rte_ring_sync_type sync_type
char name[RTE_RING_NAMESIZE] __rte_cache_aligned
char pad0 __rte_cache_aligned
const struct rte_memzone * memzone
char pad1 __rte_cache_aligned
char pad2 __rte_cache_aligned