10 #ifndef _RTE_RING_GENERIC_PVT_H_
11 #define _RTE_RING_GENERIC_PVT_H_
15 uint32_t new_val, uint32_t single, uint32_t enqueue)
56 __rte_ring_move_prod_head(
struct rte_ring *r,
unsigned int is_sp,
58 uint32_t *old_head, uint32_t *new_head,
59 uint32_t *free_entries)
69 *old_head = r->prod.
head;
82 *free_entries = (capacity + r->cons.
tail - *old_head);
92 *new_head = *old_head + n;
94 r->prod.
head = *new_head, success = 1;
97 *old_head, *new_head);
126 __rte_ring_move_cons_head(
struct rte_ring *r,
unsigned int is_sc,
128 uint32_t *old_head, uint32_t *new_head,
131 unsigned int max = n;
139 *old_head = r->cons.
head;
151 *entries = (r->prod.
tail - *old_head);
160 *new_head = *old_head + n;
162 r->cons.
head = *new_head;
static void rte_smp_rmb(void)
static int rte_atomic32_cmpset(volatile uint32_t *dst, uint32_t exp, uint32_t src)
#define __rte_always_inline
static void rte_pause(void)
static void rte_smp_wmb(void)