OSDN Git Service

libbpf 1.0: Deprecate bpf_map__is_offload_neutral()
authorChristy Lee <christylee@fb.com>
Wed, 5 Jan 2022 00:06:01 +0000 (16:06 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Jan 2022 00:09:06 +0000 (16:09 -0800)
commit9855c131b9c8b0327ff5182f88bb1991f212415b
treee2eeb4c8c1cf5b90c382bf8848148b0608cc4832
parent51a33c60f1c22c0d2dafad774315ba1537765442
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
tools/bpf/bpftool/prog.c
tools/lib/bpf/libbpf.h