61 enum { TXBUFF_PKTDEV_FLAG = 0, TXBUFF_XSKDEV_FLAG = 1 };
 
   69 #define TXBUFF_SIZE(sz) (sizeof(txbuff_t) + (sz) * sizeof(pktmbuf_t *)) 
  236     return (!buffer) ? -1 : buffer->
length;
 
CNDP_API txbuff_t * txbuff_pktdev_create(uint16_t size, txbuff_error_fn cbfn, void *cb_arg, uint16_t lport_id)
 
CNDP_API void txbuff_drop_callback(txbuff_t *buffer, uint16_t sent, uint16_t unsent)
 
void(* txbuff_error_fn)(struct txbuff *buffer, uint16_t unsent, uint16_t sent)
 
CNDP_API uint16_t txbuff_add(txbuff_t *buffer, pktmbuf_t *tx_pkt)
 
CNDP_API void txbuff_count_callback(txbuff_t *buffer, uint16_t sent, uint16_t unsent)
 
CNDP_API void txbuff_free(txbuff_t *buffer)
 
CNDP_API int txbuff_set_err_callback(txbuff_t *buffer, txbuff_error_fn callback, void *userdata)
 
static int txbuff_count(txbuff_t *buffer)
 
CNDP_API txbuff_t * txbuff_xskdev_create(uint16_t size, txbuff_error_fn cbfn, void *cb_arg, void *xinfo)
 
CNDP_API uint16_t txbuff_flush(txbuff_t *buffer)