CNDP  22.08.0
pktmbuf_pending Struct Reference

#include <pktmbuf.h>

Data Fields

uint16_t nb_pending
 
uint16_t pending_sz
 
void * pooldata
 
pktmbuf_tpending [PKTMBUF_PENDING_SZ]
 

Detailed Description

Structure to help with bulk free of mbufs.

As the pktmbuf_free_bulk is called this structure holds all of the mbufs allocated from the same pool. When a different pool is found in the array of mbufs pointers they are freed and the set of mbufs to a given pool is created.

Definition at line 213 of file pktmbuf.h.

Field Documentation

◆ nb_pending

uint16_t nb_pending

The number of current pending mbufs in thr pending array

Definition at line 214 of file pktmbuf.h.

◆ pending_sz

uint16_t pending_sz

Max number of mbufs that can be held in the pending array

Definition at line 215 of file pktmbuf.h.

◆ pooldata

void* pooldata

The current pool pointer for the mbufs in the pending array

Definition at line 216 of file pktmbuf.h.

◆ pending

array of mbufs to be freed

Definition at line 217 of file pktmbuf.h.


The documentation for this struct was generated from the following file: