diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 10:58:34 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 12:34:03 -0700 |
commit | 0e545dbaa2797133f57bf8387e8f74cd245cedea (patch) | |
tree | d6b57e0ba51373477c58bea70ec99e43e553913e /tools/testing/selftests/bpf/xdping.c | |
parent | 4a404a7e8a3902fc560527241a611186605efb4e (diff) | |
parent | 6f2b219b62a4376ca2da15c503de79d0650c8155 (diff) |
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/20210906165456.325999-1-hengqi.chen@gmail.com/
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/xdping.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdping.c b/tools/testing/selftests/bpf/xdping.c index 79a3453dab25..30f12637f4e4 100644 --- a/tools/testing/selftests/bpf/xdping.c +++ b/tools/testing/selftests/bpf/xdping.c @@ -187,7 +187,7 @@ int main(int argc, char **argv) return 1; } - map = bpf_map__next(NULL, obj); + map = bpf_object__next_map(obj, NULL); if (map) map_fd = bpf_map__fd(map); if (!map || map_fd < 0) { |