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)
55 __rte_ring_move_prod_head(
struct rte_ring *r,
unsigned int is_sp,
57 uint32_t *old_head, uint32_t *new_head,
58 uint32_t *free_entries)
68 *old_head = r->prod.
head;
91 *new_head = *old_head + n;
93 r->prod.
head = *new_head, success = 1;
96 *old_head, *new_head);
125 __rte_ring_move_cons_head(
struct rte_ring *r,
unsigned int is_sc,
127 uint32_t *old_head, uint32_t *new_head,
130 unsigned int max = n;
138 *old_head = r->cons.
head;
150 *entries = (r->prod.
tail - *old_head);
159 *new_head = *old_head + n;
161 r->cons.
head = *new_head;