Merge branch 'libbpf: deprecate legacy BPF map definitions'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 21 Jan 2022 05:19:05 +0000 (21:19 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Jan 2022 05:19:05 +0000 (21:19 -0800)
commit1713e33bfd28e156dbfb4711213b7314cced5791
tree7f71ccb566383db2b21700a76f30867954b76ed9
parent1058b6a78db21e3f503362ac4719b3d83b3dd745
parent96c85308eed9a31a53a0f4f2bd6a85bb88776e93
Merge branch 'libbpf: deprecate legacy BPF map definitions'

Andrii Nakryiko says:

====================

Officially deprecate legacy BPF map definitions in libbpf. They've been slated
for deprecation for a while in favor of more powerful BTF-defined map
definitions and this patch set adds warnings and a way to enforce this in
libbpf through LIBBPF_STRICT_MAP_DEFINITIONS strict mode flag.

Selftests are fixed up and updated, BPF documentation is updated, bpftool's
strict mode usage is adjusted to avoid breaking users unnecessarily.

v1->v2:
  - replace missed bpf_map_def case in Documentation/bpf/btf.rst (Alexei).
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>