]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bpf_glue: Remove use of bpf_load_program from libbpf
authorDavid Ahern <dsahern@kernel.org>
Mon, 7 Feb 2022 00:32:43 +0000 (17:32 -0700)
committerDavid Ahern <dsahern@kernel.org>
Mon, 7 Mar 2022 15:52:08 +0000 (08:52 -0700)
commit873bb9751f84252542040ad68632651144fbf1d3
tree42037cd989e3822871d0402344bc2233a5dcbfcb
parent5e17b715295f76709f4088ae5374ae1cadcc2029
bpf_glue: Remove use of bpf_load_program from libbpf

bpf_load_program is deprecated starting in v0.7. The preferred
bpf_prog_load requires bpf_prog_load_opts from v0.6. This creates an
ugly scenario for iproute2 to work across libbpf versions from v0.1
and up.

Since bpf_program_load is only used to load the builtin vrf program,
just remove the libbpf call and use the legacy code.

Signed-off-by: David Ahern <dsahern@kernel.org>
lib/bpf_glue.c
lib/bpf_legacy.c