DPDK  20.11.3
Macros | Functions
rte_pmd_ark.h File Reference
#include <rte_mbuf.h>
#include <rte_mbuf_dyn.h>

Go to the source code of this file.

Macros

#define RTE_PMD_ARK_TX_USERDATA_DYNFIELD_NAME   "rte_net_ark_dynfield_tx_userdata"
 
#define RTE_PMD_ARK_RX_USERDATA_DYNFIELD_NAME   "rte_net_ark_dynfield_rx_userdata"
 

Functions

static __rte_experimental rte_pmd_ark_tx_userdata_t rte_pmd_ark_mbuf_tx_userdata_get (const struct rte_mbuf *mbuf)
 
static __rte_experimental void rte_pmd_ark_mbuf_tx_userdata_set (struct rte_mbuf *mbuf, rte_pmd_ark_tx_userdata_t data)
 
static __rte_experimental rte_pmd_ark_rx_userdata_t rte_pmd_ark_mbuf_rx_userdata_get (const struct rte_mbuf *mbuf)
 
static __rte_experimental void rte_pmd_ark_mbuf_rx_userdata_set (struct rte_mbuf *mbuf, rte_pmd_ark_rx_userdata_t data)
 

Detailed Description

ARK driver-specific API

Definition in file rte_pmd_ark.h.

Macro Definition Documentation

◆ RTE_PMD_ARK_TX_USERDATA_DYNFIELD_NAME

#define RTE_PMD_ARK_TX_USERDATA_DYNFIELD_NAME   "rte_net_ark_dynfield_tx_userdata"

mbuf dynamic field for custom Tx ARK data

Definition at line 31 of file rte_pmd_ark.h.

◆ RTE_PMD_ARK_RX_USERDATA_DYNFIELD_NAME

#define RTE_PMD_ARK_RX_USERDATA_DYNFIELD_NAME   "rte_net_ark_dynfield_rx_userdata"

mbuf dynamic field for custom Rx ARK data

Definition at line 33 of file rte_pmd_ark.h.

Function Documentation

◆ rte_pmd_ark_mbuf_tx_userdata_get()

static __rte_experimental rte_pmd_ark_tx_userdata_t rte_pmd_ark_mbuf_tx_userdata_get ( const struct rte_mbuf mbuf)
inlinestatic
Warning
EXPERIMENTAL: this API may change without prior notice

Read Tx user data from mbuf.

Parameters
mbufStructure to read from.
Returns
user data

Definition at line 46 of file rte_pmd_ark.h.

◆ rte_pmd_ark_mbuf_tx_userdata_set()

static __rte_experimental void rte_pmd_ark_mbuf_tx_userdata_set ( struct rte_mbuf mbuf,
rte_pmd_ark_tx_userdata_t  data 
)
inlinestatic
Warning
EXPERIMENTAL: this API may change without prior notice

Write Tx user data to mbuf.

Parameters
mbufStructure to write into.
dataUser data.

Definition at line 68 of file rte_pmd_ark.h.

◆ rte_pmd_ark_mbuf_rx_userdata_get()

static __rte_experimental rte_pmd_ark_rx_userdata_t rte_pmd_ark_mbuf_rx_userdata_get ( const struct rte_mbuf mbuf)
inlinestatic
Warning
EXPERIMENTAL: this API may change without prior notice

Read Rx user data from mbuf.

Parameters
mbufStructure to read from.
Returns
user data

Definition at line 91 of file rte_pmd_ark.h.

◆ rte_pmd_ark_mbuf_rx_userdata_set()

static __rte_experimental void rte_pmd_ark_mbuf_rx_userdata_set ( struct rte_mbuf mbuf,
rte_pmd_ark_rx_userdata_t  data 
)
inlinestatic
Warning
EXPERIMENTAL: this API may change without prior notice

Write Rx user data to mbuf.

Parameters
mbufStructure to write into.
dataUser data.

Definition at line 113 of file rte_pmd_ark.h.