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

Function rte_bpf_elf_load

dpdk/lib/bpf/bpf_stub.c:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12#ifndef RTE_LIBRTE_BPF_ELF
13struct rte_bpf *
14rte_bpf_elf_load(const struct rte_bpf_prm *prm, const char *fname,
15 const char *sname)
16{
17 if (prm == NULL || fname == NULL || sname == NULL) {
18 rte_errno = EINVAL;
19 return NULL;
20 }
21
22 RTE_BPF_LOG(ERR, "%s() is not supported with current config\n"
23 "rebuild with libelf installed\n",
24 __func__);
25 rte_errno = ENOTSUP;
26 return NULL;
27}
28#endif
29
30#ifndef RTE_HAS_LIBPCAP

Callers 1

bpf_eth_elf_loadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected