diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-11-03 15:08:45 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-07 08:34:24 -0800 |
commit | f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288 (patch) | |
tree | a164f26f57eba6af07aa06c3777390e32c3b666c /tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c | |
parent | selftests/bpf: Use explicit bpf_prog_test_load() calls everywhere (diff) | |
download | linux-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.tar.gz linux-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.tar.bz2 linux-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.c | 4 |
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; } |