DPDK 26.11.0-rc2
Data Fields
rte_bpf_prm_ex Struct Reference

#include <rte_bpf.h>

Data Fields

size_t sz
 
uint32_t flags
 
enum rte_bpf_origin origin
 
union {
}; 
 
const struct rte_bpf_xsym * xsym
 
uint32_t nb_xsym
 
struct rte_bpf_arg prog_arg [RTE_BPF_FUNC_MAX_ARGS]
 
uint32_t nb_prog_arg
 
const struct rte_ebpf_insn * ins
 
uint32_t nb_ins
 
const struct bpf_insn * ins
 
const char * path
 
const char * section
 
const void * data
 
size_t size
 

Detailed Description

Input parameters for loading eBPF code, extensible version.

Follows libbpf conventions for extensible structs.

Definition at line 143 of file rte_bpf.h.

Field Documentation

◆ sz

size_t sz

size of this struct for backward compatibility

Definition at line 144 of file rte_bpf.h.

◆ flags

uint32_t flags

flags controlling eBPF load and other options

Definition at line 146 of file rte_bpf.h.

◆ origin

enum rte_bpf_origin origin

origin of eBPF program code

Definition at line 148 of file rte_bpf.h.

◆ ins [1/2]

const struct rte_ebpf_insn* ins

eBPF instructions

Definition at line 153 of file rte_bpf.h.

◆ nb_ins

uint32_t nb_ins

number of instructions in ins

Definition at line 154 of file rte_bpf.h.

◆ ins [2/2]

const struct bpf_insn* ins

cBPF instructions

Definition at line 157 of file rte_bpf.h.

◆ path

const char* path

path to the ELF file

Definition at line 161 of file rte_bpf.h.

◆ section

const char* section

ELF section with the code

Definition at line 162 of file rte_bpf.h.

◆ data

const void* data

pointer to the ELF image

Definition at line 165 of file rte_bpf.h.

◆ size

size_t size

size of the ELF image

Definition at line 166 of file rte_bpf.h.

◆ 

union { ... } @87

program origin parameters, member in use depends on origin

◆ xsym

const struct rte_bpf_xsym* xsym

array of external symbols that eBPF code is allowed to reference

Definition at line 171 of file rte_bpf.h.

◆ nb_xsym

uint32_t nb_xsym

number of elements in xsym

Definition at line 173 of file rte_bpf.h.

◆ prog_arg

struct rte_bpf_arg prog_arg[RTE_BPF_FUNC_MAX_ARGS]

program arguments

Definition at line 175 of file rte_bpf.h.

◆ nb_prog_arg

uint32_t nb_prog_arg

program argument count

Definition at line 176 of file rte_bpf.h.


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