voidrte_bpf_eth_rx_unload(uint16_tport,uint16_tqueue)
Unload previously loaded BPF program (if any) from given RX port/queue and remove appropriate RX
port/queue callback.
Parametersport The identifier of the ethernet port
queue The identifier of the RX queue on the given port
voidrte_bpf_eth_tx_unload(uint16_tport,uint16_tqueue)
Unload previously loaded BPF program (if any) from given TX port/queue and remove appropriate TX
port/queue callback.
Parametersport The identifier of the ethernet port
queue The identifier of the TX queue on the given port
intrte_bpf_eth_rx_elf_load(uint16_tport,uint16_tqueue,conststructrte_bpf_prm*prm,constchar*fname,constchar*sname,uint32_tflags)
Load BPF program from the ELF file and install callback to execute it on given RX port/queue.
Parametersport 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.
intrte_bpf_eth_tx_elf_load(uint16_tport,uint16_tqueue,conststructrte_bpf_prm*prm,constchar*fname,constchar*sname,uint32_tflags)
Load BPF program from the ELF file and install callback to execute it on given TX port/queue.
Parametersport 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.