DPDK  20.05.0
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 
28 #include <rte_bpf.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 enum {
35  RTE_BPF_ETH_F_NONE = 0,
36  RTE_BPF_ETH_F_JIT = 0x1, /*< use compiled into native ISA code */
37 };
38 
48 __rte_experimental
49 void
50 rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue);
51 
61 __rte_experimental
62 void
63 rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue);
64 
85 __rte_experimental
86 int
87 rte_bpf_eth_rx_elf_load(uint16_t port, uint16_t queue,
88  const struct rte_bpf_prm *prm, const char *fname, const char *sname,
89  uint32_t flags);
90 
111 __rte_experimental
112 int
113 rte_bpf_eth_tx_elf_load(uint16_t port, uint16_t queue,
114  const struct rte_bpf_prm *prm, const char *fname, const char *sname,
115  uint32_t flags);
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* _RTE_BPF_ETHDEV_H_ */
__rte_experimental void rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue)
__rte_experimental 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)
__rte_experimental void rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue)
__rte_experimental 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)