libbpf: Split bpf_core_apply_relo() into bpf_program independent helper.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 21 Jul 2021 00:08:20 +0000 (17:08 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 26 Jul 2021 19:13:05 +0000 (12:13 -0700)
commit3ee4f5335511b5357d3e762b3461b0d13e565ad5
treeb93a3919d8fcfe34d401c3f63a6e660459c00bfd
parent6e43b28607848eeb079c033f415b410788569b27
libbpf: Split bpf_core_apply_relo() into bpf_program independent helper.

bpf_core_apply_relo() doesn't need to know bpf_program internals
and hashmap details.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210721000822.40958-3-alexei.starovoitov@gmail.com
tools/lib/bpf/libbpf.c