DPDK  19.02.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 void __rte_experimental
49 rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue);
50 
60 void __rte_experimental
61 rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue);
62 
83 int __rte_experimental
84 rte_bpf_eth_rx_elf_load(uint16_t port, uint16_t queue,
85  const struct rte_bpf_prm *prm, const char *fname, const char *sname,
86  uint32_t flags);
87 
108 int __rte_experimental
109 rte_bpf_eth_tx_elf_load(uint16_t port, uint16_t queue,
110  const struct rte_bpf_prm *prm, const char *fname, const char *sname,
111  uint32_t flags);
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif /* _RTE_BPF_ETHDEV_H_ */