X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_bpf%2Fbpf_load.c;h=d1c9abd7f0b4f2e9154d851dcffb56d3bd73928b;hb=9bc509164ef9cf6f6007a996282bcb31590b9d99;hp=f28ecfb4d6a4603e874bb323ec04dea8c39edb5a;hpb=94972f35a02e91d60d68d1eea041496903124568;p=dpdk.git diff --git a/lib/librte_bpf/bpf_load.c b/lib/librte_bpf/bpf_load.c index f28ecfb4d6..d1c9abd7f0 100644 --- a/lib/librte_bpf/bpf_load.c +++ b/lib/librte_bpf/bpf_load.c @@ -83,3 +83,19 @@ rte_bpf_load(const struct rte_bpf_prm *prm) return bpf; } + +__rte_experimental __attribute__ ((weak)) struct rte_bpf * +rte_bpf_elf_load(const struct rte_bpf_prm *prm, const char *fname, + const char *sname) +{ + if (prm == NULL || fname == NULL || sname == NULL) { + rte_errno = EINVAL; + return NULL; + } + + RTE_BPF_LOG(ERR, "%s() is not supported with current config\n" + "rebuild with libelf installed\n", + __func__); + rte_errno = ENOTSUP; + return NULL; +}