| 11 | |
| 12 | #ifndef RTE_LIBRTE_BPF_ELF |
| 13 | struct rte_bpf * |
| 14 | rte_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 |