diff options
| author | Christy Lee <[email protected]> | 2022-01-05 00:06:01 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-01-06 00:09:06 +0000 |
| commit | 9855c131b9c8b0327ff5182f88bb1991f212415b (patch) | |
| tree | e2eeb4c8c1cf5b90c382bf8848148b0608cc4832 /tools/bpf/bpftool/prog.c | |
| parent | libbpf: Support repeated legacy kprobes on same function (diff) | |
| download | kernel-9855c131b9c8b0327ff5182f88bb1991f212415b.tar.gz kernel-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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
| -rw-r--r-- | tools/bpf/bpftool/prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index f874896c4154..2a21d50516bc 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c @@ -1655,7 +1655,7 @@ static int load_with_options(int argc, char **argv, bool first_prog_only) j = 0; idx = 0; bpf_object__for_each_map(map, obj) { - if (!bpf_map__is_offload_neutral(map)) + if (bpf_map__type(map) != BPF_MAP_TYPE_PERF_EVENT_ARRAY) bpf_map__set_ifindex(map, ifindex); if (j < old_map_fds && idx == map_replace[j].idx) { |
