X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Fbpf_load.c;h=2a3b901d74c3fe7520b3dd5a782b82cf2b5fdc3f;hb=957394f726589f7e51362e58936e513de3cccb19;hp=2b84fe7244597f9aef7ae1e8ef8a5f61ee13cd77;hpb=60702e8c7cbbadd4d5e6ffe4d7f470db339b0a04;p=dpdk.git diff --git a/lib/librte_bpf/bpf_load.c b/lib/librte_bpf/bpf_load.c index 2b84fe7244..2a3b901d74 100644 --- a/lib/librte_bpf/bpf_load.c +++ b/lib/librte_bpf/bpf_load.c @@ -86,7 +86,7 @@ bpf_check_xsym(const struct rte_bpf_xsym *xsym) return 0; } -__rte_experimental struct rte_bpf * +struct rte_bpf * rte_bpf_load(const struct rte_bpf_prm *prm) { struct rte_bpf *bpf; @@ -131,7 +131,8 @@ rte_bpf_load(const struct rte_bpf_prm *prm) return bpf; } -__rte_experimental __attribute__ ((weak)) struct rte_bpf * +#ifndef RTE_LIBRTE_BPF_ELF +struct rte_bpf * rte_bpf_elf_load(const struct rte_bpf_prm *prm, const char *fname, const char *sname) { @@ -146,3 +147,4 @@ rte_bpf_elf_load(const struct rte_bpf_prm *prm, const char *fname, rte_errno = ENOTSUP; return NULL; } +#endif