CNDP 22.08.0
Loading...
Searching...
No Matches
txbuff Struct Reference

#include <txbuff.h>

Data Fields

txbuff_error_fn error_cb
void * userdata
uint32_t txtype
uint16_t size
uint16_t length
pktmbuf_t * pkts []

Detailed Description

Structure used to buffer packets for future TX Used by APIs txbuff_add and txbuff_flush

Examples
examples/cndpfwd/acl-func.c, examples/cndpfwd/main.c, and examples/dlb_test/dlb_test.c.

Definition at line 44 of file txbuff.h.

Field Documentation

◆ error_cb

txbuff_error_fn error_cb

TX Buffer error callback function

Definition at line 50 of file txbuff.h.

◆ userdata

void* userdata

Userdata for error and count callbacks

Definition at line 51 of file txbuff.h.

◆ txtype

uint32_t txtype

the type of txbuff pktdev or xskdev

Definition at line 52 of file txbuff.h.

◆ size

uint16_t size

Size of buffer for buffered tx

Definition at line 53 of file txbuff.h.

◆ length

uint16_t length

Number of packets in the array

Definition at line 54 of file txbuff.h.

◆ pkts

pktmbuf_t* pkts[]

Pending packets to be sent on explicit flush or when full

Definition at line 55 of file txbuff.h.


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