]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab2b35899f3c67f317783ab6bd52216eb7af54f8
treee2eeb4c8c1cf5b90c382bf8848148b0608cc4832
parent28e9ac98b14a667bc2c3c99823afdfe2f5d549ce
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