DPDK  19.11.14
rte_reorder.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4 
5 #ifndef _RTE_REORDER_H_
6 #define _RTE_REORDER_H_
7 
18 #include <rte_mbuf.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 struct rte_reorder_buffer;
25 
45 struct rte_reorder_buffer *
46 rte_reorder_create(const char *name, unsigned socket_id, unsigned int size);
47 
64 struct rte_reorder_buffer *
65 rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize,
66  const char *name, unsigned int size);
67 
80 struct rte_reorder_buffer *
81 rte_reorder_find_existing(const char *name);
82 
89 void
90 rte_reorder_reset(struct rte_reorder_buffer *b);
91 
100 void
101 rte_reorder_free(struct rte_reorder_buffer *b);
102 
125 int
126 rte_reorder_insert(struct rte_reorder_buffer *b, struct rte_mbuf *mbuf);
127 
145 unsigned int
146 rte_reorder_drain(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs,
147  unsigned max_mbufs);
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif /* _RTE_REORDER_H_ */
unsigned int rte_reorder_drain(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs, unsigned max_mbufs)
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)
struct rte_reorder_buffer * rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize, const char *name, unsigned int size)
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)