| 31 | } |
| 32 | |
| 33 | int |
| 34 | __rte_bpf_jit(struct rte_bpf *bpf) |
| 35 | { |
| 36 | int32_t rc; |
| 37 | |
| 38 | #if defined(RTE_ARCH_X86_64) |
| 39 | rc = __rte_bpf_jit_x86(bpf); |
| 40 | #elif defined(RTE_ARCH_ARM64) |
| 41 | rc = __rte_bpf_jit_arm64(bpf); |
| 42 | #else |
| 43 | rc = -ENOTSUP; |
| 44 | #endif |
| 45 | |
| 46 | if (rc != 0) |
| 47 | RTE_BPF_LOG(WARNING, "%s(%p) failed, error code: %d;\n", |
| 48 | __func__, bpf, rc); |
| 49 | return rc; |
| 50 | } |
| 51 | |
| 52 | RTE_LOG_REGISTER_DEFAULT(rte_bpf_logtype, INFO); |
no test coverage detected