git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipsec: support CPU crypto mode
[dpdk.git]
/
lib
/
librte_bpf
/
bpf_load.c
diff --git
a/lib/librte_bpf/bpf_load.c
b/lib/librte_bpf/bpf_load.c
index
2b84fe7
..
2a3b901
100644
(file)
--- 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;
}
return 0;
}
-
__rte_experimental
struct rte_bpf *
+struct rte_bpf *
rte_bpf_load(const struct rte_bpf_prm *prm)
{
struct rte_bpf *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;
}
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)
{
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;
}
rte_errno = ENOTSUP;
return NULL;
}
+#endif