]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Clean up legacy bpf maps declaration in bpf_helpers
authorXin Liu <liuxin350@huawei.com>
Tue, 13 Sep 2022 07:36:43 +0000 (15:36 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Sep 2022 20:56:09 +0000 (22:56 +0200)
commitce012cbdd4dd873ab70ca41151abf256d578c2e2
tree84bb5bbf5d904554e733efcfe43730655d12022b
parent473cee66735d472c3b05460f5e409c50af208089
libbpf: Clean up legacy bpf maps declaration in bpf_helpers

Legacy BPF map declarations are no longer supported in libbpf v1.0 [0].
Only BTF-defined maps are supported starting from v1.0, so it is time to
remove the definition of bpf_map_def in bpf_helpers.h.

  [0] https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0

Signed-off-by: Xin Liu <liuxin350@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/bpf/20220913073643.19960-1-liuxin350@huawei.com
tools/lib/bpf/bpf_helpers.h