aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-11-03 15:08:45 -0700
committerAlexei Starovoitov <ast@kernel.org>2021-11-07 08:34:24 -0800
commitf19ddfe0360a1aa64db0b4a41f59e1ade3f6d288 (patch)
treea164f26f57eba6af07aa06c3777390e32c3b666c /tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
parentselftests/bpf: Use explicit bpf_prog_test_load() calls everywhere (diff)
downloadlinux-dev-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.tar.xz
linux-dev-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.zip
selftests/bpf: Use explicit bpf_test_load_program() helper calls
Remove the second part of prog loading testing helper re-definition: -Dbpf_load_program=bpf_test_load_program This completes the clean up of deprecated libbpf program loading APIs. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Dave Marchevsky <davemarchevsky@fb.com> Link: https://lore.kernel.org/bpf/20211103220845.2676888-13-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
index f0c6c226aba8..7c79462d2702 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
@@ -47,9 +47,9 @@ static int load_prog(enum bpf_prog_type type)
};
int fd;
- fd = bpf_load_program(type, prog, ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
+ fd = bpf_test_load_program(type, prog, ARRAY_SIZE(prog), "GPL", 0, NULL, 0);
if (CHECK_FAIL(fd < 0))
- perror("bpf_load_program");
+ perror("bpf_test_load_program");
return fd;
}