DPDK
19.11.4
|
#include <rte_bpf.h>
Go to the source code of this file.
Enumerations | |
enum | { , RTE_QDMA_MODE_HW, RTE_QDMA_MODE_VIRTUAL , RTE_MIN_ERRNO = __ELASTERROR, E_RTE_SECONDARY, E_RTE_NO_CONFIG, RTE_MAX_ERRNO , CFG_FLAG_GLOBAL_SECTION = 1, CFG_FLAG_EMPTY_VALUES = 2, IP_LAST_FRAG_IDX, IP_FIRST_FRAG_IDX, IP_MIN_FRAG_NUM, IP_MAX_FRAG_NUM = RTE_LIBRTE_IP_FRAG_MAX_FRAG , RTE_RIB_GET_NXT_ALL, RTE_RIB_GET_NXT_COVER, RTE_RIB6_GET_NXT_ALL, RTE_RIB6_GET_NXT_COVER } |
Functions | |
__rte_experimental void | rte_bpf_eth_rx_unload (uint16_t port, uint16_t queue) |
__rte_experimental void | rte_bpf_eth_tx_unload (uint16_t port, uint16_t queue) |
__rte_experimental int | rte_bpf_eth_rx_elf_load (uint16_t port, uint16_t queue, const struct rte_bpf_prm *prm, const char *fname, const char *sname, uint32_t flags) |
__rte_experimental int | rte_bpf_eth_tx_elf_load (uint16_t port, uint16_t queue, const struct rte_bpf_prm *prm, const char *fname, const char *sname, uint32_t flags) |
EXPERIMENTAL: this API may change without prior notice
API to install BPF filter as RX/TX callbacks for eth devices. Note that right now:
Definition in file rte_bpf_ethdev.h.
anonymous enum |
Definition at line 34 of file rte_bpf_ethdev.h.
__rte_experimental void rte_bpf_eth_rx_unload | ( | uint16_t | port, |
uint16_t | queue | ||
) |
Unload previously loaded BPF program (if any) from given RX port/queue and remove appropriate RX port/queue callback.
port | The identifier of the ethernet port |
queue | The identifier of the RX queue on the given port |
__rte_experimental void rte_bpf_eth_tx_unload | ( | uint16_t | port, |
uint16_t | queue | ||
) |
Unload previously loaded BPF program (if any) from given TX port/queue and remove appropriate TX port/queue callback.
port | The identifier of the ethernet port |
queue | The identifier of the TX queue on the given port |
__rte_experimental int rte_bpf_eth_rx_elf_load | ( | uint16_t | port, |
uint16_t | queue, | ||
const struct rte_bpf_prm * | prm, | ||
const char * | fname, | ||
const char * | sname, | ||
uint32_t | flags | ||
) |
Load BPF program from the ELF file and install callback to execute it on given RX port/queue.
port | The identifier of the ethernet port |
queue | The identifier of the RX queue on the given port |
fname | Pathname for a ELF file. |
sname | Name of the executable section within the file to load. |
prm | Parameters used to create and initialise the BPF execution context. |
flags | Flags that define expected behavior of the loaded filter (i.e. jited/non-jited version to use). |
__rte_experimental int rte_bpf_eth_tx_elf_load | ( | uint16_t | port, |
uint16_t | queue, | ||
const struct rte_bpf_prm * | prm, | ||
const char * | fname, | ||
const char * | sname, | ||
uint32_t | flags | ||
) |
Load BPF program from the ELF file and install callback to execute it on given TX port/queue.
port | The identifier of the ethernet port |
queue | The identifier of the TX queue on the given port |
fname | Pathname for a ELF file. |
sname | Name of the executable section within the file to load. |
prm | Parameters used to create and initialise the BPF execution context. |
flags | Flags that define expected expected behavior of the loaded filter (i.e. jited/non-jited version to use). |