DPDK 26.07.0
 
Loading...
Searching...
No Matches
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 [EBPF_FUNC_MAX_ARGS]
 
uint32_t nb_prog_arg
 

Detailed Description

Input parameters for loading eBPF code, extensible version.

Follows libbpf conventions for extensible structs.

Definition at line 128 of file rte_bpf.h.

Field Documentation

◆ sz

size_t sz

size of this struct for backward compatibility

Definition at line 129 of file rte_bpf.h.

◆ flags

uint32_t flags

flags controlling eBPF load and other options

Definition at line 131 of file rte_bpf.h.

◆ origin

enum rte_bpf_origin origin

origin of eBPF program code

Definition at line 133 of file rte_bpf.h.

◆ ins [1/2]

const struct ebpf_insn* ins

eBPF instructions

Definition at line 138 of file rte_bpf.h.

◆ nb_ins

uint32_t nb_ins

number of instructions in ins

Definition at line 139 of file rte_bpf.h.

◆ ins [2/2]

const struct bpf_insn* ins

cBPF instructions

Definition at line 142 of file rte_bpf.h.

◆ path

const char* path

path to the ELF file

Definition at line 146 of file rte_bpf.h.

◆ section

const char* section

ELF section with the code

Definition at line 147 of file rte_bpf.h.

◆ data

const void* data

pointer to the ELF image

Definition at line 150 of file rte_bpf.h.

◆ size

size_t size

size of the ELF image

Definition at line 151 of file rte_bpf.h.

◆ [union]

union { ... }

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 156 of file rte_bpf.h.

◆ nb_xsym

uint32_t nb_xsym

number of elements in xsym

Definition at line 158 of file rte_bpf.h.

◆ prog_arg

struct rte_bpf_arg prog_arg[EBPF_FUNC_MAX_ARGS]

program arguments

Definition at line 160 of file rte_bpf.h.

◆ nb_prog_arg

uint32_t nb_prog_arg

program argument count

Definition at line 161 of file rte_bpf.h.


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