X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Frte_bpf_ethdev.h;h=135062c9e13c1eacca52b91c8cfcbe806f70c7c5;hb=2ca75c65af4ca9c836ca0b4eabec69bde05fbed6;hp=b4d4d3b16d7d287d3a8f4fc0d76563de7b9fb9fe;hpb=a93ff62a8938fd74711a6a96044d2dde78ce799b;p=dpdk.git diff --git a/lib/librte_bpf/rte_bpf_ethdev.h b/lib/librte_bpf/rte_bpf_ethdev.h index b4d4d3b16d..135062c9e1 100644 --- a/lib/librte_bpf/rte_bpf_ethdev.h +++ b/lib/librte_bpf/rte_bpf_ethdev.h @@ -6,7 +6,7 @@ #define _RTE_BPF_ETHDEV_H_ /** - * @file + * @file rte_bpf_ethdev.h * * API to install BPF filter as RX/TX callbacks for eth devices. * Note that right now: @@ -44,7 +44,8 @@ enum { * @param queue * The identifier of the RX queue on the given port */ -void rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue); +void +rte_bpf_eth_rx_unload(uint16_t port, uint16_t queue); /** * Unload previously loaded BPF program (if any) from given TX port/queue @@ -55,7 +56,8 @@ void 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_bpf_eth_tx_unload(uint16_t port, uint16_t queue); +void +rte_bpf_eth_tx_unload(uint16_t port, uint16_t queue); /** * Load BPF program from the ELF file and install callback to execute it @@ -70,14 +72,15 @@ void 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_bpf_eth_rx_elf_load(uint16_t port, uint16_t queue, +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); @@ -94,14 +97,15 @@ int 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_bpf_eth_tx_elf_load(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);