Sponsor:

Your company here, and a link to your site. Click to find out more.

rte_bpf_ethdev.h - Man Page

Synopsis

#include <rte_bpf.h>

Functions

void rte_bpf_eth_rx_unload (uint16_t port, uint16_t queue)
void rte_bpf_eth_tx_unload (uint16_t port, uint16_t queue)
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)
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)

Detailed Description

API to install BPF filter as RX/TX callbacks for eth devices. Note that right now:

Definition in file rte_bpf_ethdev.h.

Function Documentation

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.

Parameters

port The identifier of the ethernet port
queue The identifier of the RX queue on the given port

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.

Parameters

port The identifier of the ethernet port
queue The identifier of the TX queue on the given port

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.

Parameters

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).

Returns

Zero on successful completion or negative error code otherwise.

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.

Parameters

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 behavior of the loaded filter (i.e. jited/non-jited version to use).

Returns

Zero on successful completion or negative error code otherwise.

Author

Generated automatically by Doxygen for DPDK from the source code.

Referenced By

The man pages rte_bpf_eth_rx_elf_load(3), rte_bpf_eth_rx_unload(3), rte_bpf_eth_tx_elf_load(3) and rte_bpf_eth_tx_unload(3) are aliases of rte_bpf_ethdev.h(3).

Version 23.11.0 DPDK