10 #ifndef _RTE_RING_PEEK_H_
11 #define _RTE_RING_PEEK_H_
73 unsigned int *free_space)
99 unsigned int *free_space)
124 unsigned int *free_space)
150 unsigned int *free_space)
174 unsigned int esize,
unsigned int n)
180 n = __rte_ring_st_get_tail(&r->prod, &tail, n);
182 __rte_ring_enqueue_elems(r, tail, obj_table, esize, n);
183 __rte_ring_st_set_head_tail(&r->prod, tail, n, 1);
185 case RTE_RING_SYNC_MT_HTS:
186 n = __rte_ring_hts_get_tail(&r->hts_prod, &tail, n);
188 __rte_ring_enqueue_elems(r, tail, obj_table, esize, n);
189 __rte_ring_hts_set_head_tail(&r->hts_prod, tail, n, 1);
192 case RTE_RING_SYNC_MT_RTS:
243 unsigned int esize,
unsigned int n,
unsigned int *available)
245 return __rte_ring_do_dequeue_start(r, obj_table, esize, n,
269 unsigned int n,
unsigned int *available)
299 unsigned int esize,
unsigned int n,
unsigned int *available)
301 return __rte_ring_do_dequeue_start(r, obj_table, esize, n,
325 unsigned int n,
unsigned int *available)
328 sizeof(uintptr_t), n, available);
349 n = __rte_ring_st_get_tail(&r->cons, &tail, n);
350 __rte_ring_st_set_head_tail(&r->cons, tail, n, 0);
352 case RTE_RING_SYNC_MT_HTS:
353 n = __rte_ring_hts_get_tail(&r->hts_cons, &tail, n);
354 __rte_ring_hts_set_head_tail(&r->hts_cons, tail, n, 0);
357 case RTE_RING_SYNC_MT_RTS:
#define __rte_always_inline
static __rte_experimental __rte_always_inline unsigned int rte_ring_enqueue_burst_elem_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_experimental __rte_always_inline void rte_ring_dequeue_elem_finish(struct rte_ring *r, unsigned int n)
static __rte_experimental __rte_always_inline unsigned int rte_ring_enqueue_bulk_elem_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_experimental __rte_always_inline void rte_ring_enqueue_elem_finish(struct rte_ring *r, const void *obj_table, unsigned int esize, unsigned int n)
static __rte_experimental __rte_always_inline unsigned int rte_ring_dequeue_burst_start(struct rte_ring *r, void **obj_table, unsigned int n, unsigned int *available)
static __rte_experimental __rte_always_inline unsigned int rte_ring_dequeue_burst_elem_start(struct rte_ring *r, void *obj_table, unsigned int esize, unsigned int n, unsigned int *available)
static __rte_experimental __rte_always_inline unsigned int rte_ring_dequeue_bulk_elem_start(struct rte_ring *r, void *obj_table, unsigned int esize, unsigned int n, unsigned int *available)
static __rte_experimental __rte_always_inline void rte_ring_dequeue_finish(struct rte_ring *r, unsigned int n)
static __rte_experimental __rte_always_inline unsigned int rte_ring_dequeue_bulk_start(struct rte_ring *r, void **obj_table, unsigned int n, unsigned int *available)
enum rte_ring_sync_type sync_type
static __rte_experimental __rte_always_inline unsigned int rte_ring_enqueue_bulk_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_experimental __rte_always_inline unsigned int rte_ring_enqueue_burst_start(struct rte_ring *r, unsigned int n, unsigned int *free_space)
static __rte_experimental __rte_always_inline void rte_ring_enqueue_finish(struct rte_ring *r, void *const *obj_table, unsigned int n)