DPDK 22.11.5
rte_bpf_ethdev.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
3 */
4
5#ifndef _RTE_BPF_ETHDEV_H_
6#define _RTE_BPF_ETHDEV_H_
7
27#include <rte_bpf.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33enum {
34 RTE_BPF_ETH_F_NONE = 0,
35 RTE_BPF_ETH_F_JIT = 0x1, /*< use compiled into native ISA code */
36};
37
47void
48rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue);
49
59void
60rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue);
61
82int
83rte_bpf_eth_rx_elf_load(uint16_t port, uint16_t queue,
84 const struct rte_bpf_prm *prm, const char *fname, const char *sname,
85 uint32_t flags);
86
107int
108rte_bpf_eth_tx_elf_load(uint16_t port, uint16_t queue,
109 const struct rte_bpf_prm *prm, const char *fname, const char *sname,
110 uint32_t flags);
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif /* _RTE_BPF_ETHDEV_H_ */
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)
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_tx_elf_load(uint16_t port, uint16_t queue, const struct rte_bpf_prm *prm, const char *fname, const char *sname, uint32_t flags)