5 #ifndef _RTE_REORDER_H_ 6 #define _RTE_REORDER_H_ 17 #include <rte_compat.h> 25 struct rte_reorder_buffer;
27 typedef uint32_t rte_reorder_seqn_t;
28 extern int rte_reorder_seqn_dynfield_offset;
40 static inline rte_reorder_seqn_t *
44 rte_reorder_seqn_t *);
66 struct rte_reorder_buffer *
86 struct rte_reorder_buffer *
88 const char *name,
unsigned int size);
102 struct rte_reorder_buffer *
194 unsigned int max_mbufs, rte_reorder_seqn_t seqn);
unsigned int rte_reorder_drain(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs, unsigned max_mbufs)
static __rte_experimental rte_reorder_seqn_t * rte_reorder_seqn(struct rte_mbuf *mbuf)
int rte_reorder_insert(struct rte_reorder_buffer *b, struct rte_mbuf *mbuf)
struct rte_reorder_buffer * rte_reorder_find_existing(const char *name)
void rte_reorder_free(struct rte_reorder_buffer *b)
#define RTE_MBUF_DYNFIELD(m, offset, type)
__rte_experimental unsigned int rte_reorder_min_seqn_set(struct rte_reorder_buffer *b, rte_reorder_seqn_t min_seqn)
struct rte_reorder_buffer * rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize, const char *name, unsigned int size)
__rte_experimental unsigned int rte_reorder_memory_footprint_get(unsigned int size)
__rte_experimental unsigned int rte_reorder_drain_up_to_seqn(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs, unsigned int max_mbufs, rte_reorder_seqn_t seqn)
struct rte_reorder_buffer * rte_reorder_create(const char *name, unsigned socket_id, unsigned int size)
void rte_reorder_reset(struct rte_reorder_buffer *b)