X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Frte_bpf_ethdev.h;h=0ce526e399a6045b22393e4cf043307a8a00fec2;hb=a0dcaea290be0d48b748d0bfa5726250adbf86d8;hp=31731e7a9deb4c8d435b49cac9e9390f27295d45;hpb=3d5cf3005e0aab360790af6cfd5bbd3586f221e2;p=dpdk.git diff --git a/lib/librte_bpf/rte_bpf_ethdev.h b/lib/librte_bpf/rte_bpf_ethdev.h index 31731e7a9d..0ce526e399 100644 --- a/lib/librte_bpf/rte_bpf_ethdev.h +++ b/lib/librte_bpf/rte_bpf_ethdev.h @@ -45,7 +45,8 @@ enum { * @param queue * The identifier of the RX queue on the given port */ -void __rte_experimental +__rte_experimental +void rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue); /** @@ -57,7 +58,8 @@ rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue); * @param queue * The identifier of the TX queue on the given port */ -void __rte_experimental +__rte_experimental +void rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue); /** @@ -73,14 +75,15 @@ rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue); * @param sname * Name of the executable section within the file to load. * @param prm - * Parameters used to create and initialise the BPF exeution context. + * Parameters used to create and initialise the BPF execution context. * @param flags - * Flags that define expected expected behavior of the loaded filter + * Flags that define expected behavior of the loaded filter * (i.e. jited/non-jited version to use). * @return * Zero on successful completion or negative error code otherwise. */ -int __rte_experimental +__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); @@ -98,14 +101,15 @@ rte_bpf_eth_rx_elf_load(uint16_t port, uint16_t queue, * @param sname * Name of the executable section within the file to load. * @param prm - * Parameters used to create and initialise the BPF exeution context. + * Parameters used to create and initialise the BPF execution context. * @param flags * Flags that define expected expected behavior of the loaded filter * (i.e. jited/non-jited version to use). * @return * Zero on successful completion or negative error code otherwise. */ -int __rte_experimental +__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);