]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59ddfa0d5e7d4c5f561a2ea098042dec167e3787
tree7f71ccb566383db2b21700a76f30867954b76ed9
parent2daa84d5a350d1c8a3cf142d12ca59f475e9829d
parent5174ae6aab85f9977c98767effa02984e4d76dc0
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>