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
net/mlx5: make tunnel hub list thread safe
[dpdk.git]
/
lib
/
librte_bpf
/
bpf.c
diff --git
a/lib/librte_bpf/bpf.c
b/lib/librte_bpf/bpf.c
index
f590c8c
..
8d15885
100644
(file)
--- a/
lib/librte_bpf/bpf.c
+++ b/
lib/librte_bpf/bpf.c
@@
-14,9
+14,7
@@
#include "bpf_impl.h"
#include "bpf_impl.h"
-int rte_bpf_logtype;
-
-__rte_experimental void
+void
rte_bpf_destroy(struct rte_bpf *bpf)
{
if (bpf != NULL) {
rte_bpf_destroy(struct rte_bpf *bpf)
{
if (bpf != NULL) {
@@
-26,7
+24,7
@@
rte_bpf_destroy(struct rte_bpf *bpf)
}
}
}
}
-
__rte_experimental
int
+int
rte_bpf_get_jit(const struct rte_bpf *bpf, struct rte_bpf_jit *jit)
{
if (bpf == NULL || jit == NULL)
rte_bpf_get_jit(const struct rte_bpf *bpf, struct rte_bpf_jit *jit)
{
if (bpf == NULL || jit == NULL)
@@
-41,8
+39,10
@@
bpf_jit(struct rte_bpf *bpf)
{
int32_t rc;
{
int32_t rc;
-#if
def RTE_ARCH_X86_64
+#if
defined(RTE_ARCH_X86_64)
rc = bpf_jit_x86(bpf);
rc = bpf_jit_x86(bpf);
+#elif defined(RTE_ARCH_ARM64)
+ rc = bpf_jit_arm64(bpf);
#else
rc = -ENOTSUP;
#endif
#else
rc = -ENOTSUP;
#endif
@@
-53,9
+53,4
@@
bpf_jit(struct rte_bpf *bpf)
return rc;
}
return rc;
}
-RTE_INIT(rte_bpf_init_log)
-{
- rte_bpf_logtype = rte_log_register("lib.bpf");
- if (rte_bpf_logtype >= 0)
- rte_log_set_level(rte_bpf_logtype, RTE_LOG_INFO);
-}
+RTE_LOG_REGISTER(rte_bpf_logtype, lib.bpf, INFO);