#include <rte_mbuf.h>
Go to the source code of this file.
RTE reorder
Reorder library is a component which is designed to provide ordering of out of ordered packets based on sequence number present in mbuf.
Definition in file rte_reorder.h.
Create a new reorder buffer instance
Allocate memory and initialize a new reorder buffer in that memory, returning the reorder buffer pointer to the user
Initializes given reorder buffer instance
Find an existing reorder buffer instance and return a pointer to it.
Reset the given reorder buffer instance with initial values.
Free reorder buffer instance.
Insert given mbuf in reorder buffer in its correct position
The given mbuf is to be reordered relative to other mbufs in the system. The mbuf must contain a sequence number which is then used to place the buffer in the correct position in the reorder buffer. Reordered packets can later be taken from the buffer using the rte_reorder_drain() API.
Fetch reordered buffers
Returns a set of in-order buffers from the reorder buffer structure. Gaps may be present in the sequence numbers of the mbuf if packets have been delayed too long before reaching the reorder window, or have been previously dropped by the system.