MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __rte_bpf_jit

Function __rte_bpf_jit

dpdk/lib/bpf/bpf.c:33–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int
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
52RTE_LOG_REGISTER_DEFAULT(rte_bpf_logtype, INFO);

Callers 1

rte_bpf_loadFunction · 0.85

Calls 2

__rte_bpf_jit_x86Function · 0.85
__rte_bpf_jit_arm64Function · 0.85

Tested by

no test coverage detected