[PATCH v2 01/29] bpf: make rte_bpf_dump and rte_bpf_convert stable API's

Konstantin Ananyev konstantin.v.ananyev at yandex.ru
Sun Sep 17 15:03:08 CEST 2023


> These two API's were introduced in 23.11 and can now be
> made not experimental.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>  lib/bpf/rte_bpf.h   | 2 --
>  lib/bpf/version.map | 9 ++-------
>  2 files changed, 2 insertions(+), 9 deletions(-)
> 
> diff --git a/lib/bpf/rte_bpf.h b/lib/bpf/rte_bpf.h
> index 4d71120dbd9d..f70d8dacd0d3 100644
> --- a/lib/bpf/rte_bpf.h
> +++ b/lib/bpf/rte_bpf.h
> @@ -209,7 +209,6 @@ rte_bpf_get_jit(const struct rte_bpf *bpf, struct rte_bpf_jit *jit);
>   * @param len
>   *   Number of BPF instructions to dump.
>   */
> -__rte_experimental
>  void
>  rte_bpf_dump(FILE *f, const struct ebpf_insn *buf, uint32_t len);
>  
> @@ -229,7 +228,6 @@ struct bpf_program;
>   *   - ENOMEM - can't reserve enough memory
>   *   - ENOTSUP - operation not supported
>   */
> -__rte_experimental
>  struct rte_bpf_prm *
>  rte_bpf_convert(const struct bpf_program *prog);
>  
> diff --git a/lib/bpf/version.map b/lib/bpf/version.map
> index c49bf1701f0a..2e957494e9df 100644
> --- a/lib/bpf/version.map
> +++ b/lib/bpf/version.map
> @@ -1,7 +1,9 @@
>  DPDK_24 {
>  	global:
>  
> +	rte_bpf_convert;
>  	rte_bpf_destroy;
> +	rte_bpf_dump;
>  	rte_bpf_elf_load;
>  	rte_bpf_eth_rx_elf_load;
>  	rte_bpf_eth_rx_unload;
> @@ -14,10 +16,3 @@ DPDK_24 {
>  
>  	local: *;
>  };
> -
> -EXPERIMENTAL {
> -	global:
> -
> -	rte_bpf_convert;
> -	rte_bpf_dump;
> -};
> -- 

Acked-by: Konstantin Ananyev <konstantin.v.ananyev at yandex.ru>


> 2.39.2



More information about the dev mailing list