diff options
author | Christy Lee <christylee@fb.com> | 2022-01-04 16:06:01 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-01-05 16:09:06 -0800 |
commit | 9855c131b9c8b0327ff5182f88bb1991f212415b (patch) | |
tree | e2eeb4c8c1cf5b90c382bf8848148b0608cc4832 /tools/lib | |
parent | 51a33c60f1c22c0d2dafad774315ba1537765442 (diff) | |
download | linux-stable-9855c131b9c8b0327ff5182f88bb1991f212415b.tar.gz linux-stable-9855c131b9c8b0327ff5182f88bb1991f212415b.tar.bz2 linux-stable-9855c131b9c8b0327ff5182f88bb1991f212415b.zip |
libbpf 1.0: Deprecate bpf_map__is_offload_neutral()
Deprecate bpf_map__is_offload_neutral(). It’s most probably broken
already. PERF_EVENT_ARRAY isn’t the only map that’s not suitable
for hardware offloading. Applications can directly check map type
instead.
[0] Closes: https://github.com/libbpf/libbpf/issues/306
Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220105000601.2090044-1-christylee@fb.com
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/bpf/libbpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h index ddf1cc9e7803..88dd943ba545 100644 --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -744,6 +744,7 @@ LIBBPF_API void *bpf_map__priv(const struct bpf_map *map); LIBBPF_API int bpf_map__set_initial_value(struct bpf_map *map, const void *data, size_t size); LIBBPF_API const void *bpf_map__initial_value(struct bpf_map *map, size_t *psize); +LIBBPF_DEPRECATED_SINCE(0, 8, "use bpf_map__type() instead") LIBBPF_API bool bpf_map__is_offload_neutral(const struct bpf_map *map); /** |