diff options
| author | Andrii Nakryiko <[email protected]> | 2021-10-06 17:58:34 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-10-06 19:34:03 +0000 |
| commit | 0e545dbaa2797133f57bf8387e8f74cd245cedea (patch) | |
| tree | d6b57e0ba51373477c58bea70ec99e43e553913e /tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | |
| parent | libbpf: Deprecate bpf_object__unload() API since v0.6 (diff) | |
| parent | selftests/bpf: Switch to new bpf_object__next_{map,program} APIs (diff) | |
| download | kernel-0e545dbaa2797133f57bf8387e8f74cd245cedea.tar.gz kernel-0e545dbaa2797133f57bf8387e8f74cd245cedea.zip | |
Merge branch 'libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7'
Hengqi Chen says:
====================
bpf_{map,program}__{prev,next} don't follow the libbpf API naming
convention. Deprecate them and replace them with a new set of APIs
named bpf_object__{prev,next}_{program,map}.
v1->v2: [0]
* Addressed Andrii's comments
[0]: https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
====================
Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_rtt.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/tcp_rtt.c b/tools/testing/selftests/bpf/prog_tests/tcp_rtt.c index d207e968e6b1..265b4fe33ec3 100644 --- a/tools/testing/selftests/bpf/prog_tests/tcp_rtt.c +++ b/tools/testing/selftests/bpf/prog_tests/tcp_rtt.c @@ -109,7 +109,7 @@ static int run_test(int cgroup_fd, int server_fd) return -1; } - map = bpf_map__next(NULL, obj); + map = bpf_object__next_map(obj, NULL); map_fd = bpf_map__fd(map); err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0); |
