]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-libbpf-cleanups'
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 21 Oct 2019 12:49:12 +0000 (14:49 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 21 Oct 2019 12:49:17 +0000 (14:49 +0200)
commita98e842b7fb289413b3827c384c81c75dec75a86
tree0a145a5dc6d4fd9502b3dff7adf4319f93bba302
parentecb42a559f2a54ac314bba818ef2d51929dff7f6
parent2252a317c51586eb21762e661aa451e94948b7d7
Merge branch 'bpf-libbpf-cleanups'

Andrii Nakryiko says:

====================
This patch set's main goal is to teach bpf_object__open() (and its variants)
to automatically derive BPF program type/expected attach type from section
names, similarly to how bpf_prog_load() was doing it. This significantly
improves user experience by eliminating yet another
obvious-only-in-the-hindsight surprise, when using libbpf APIs.

There are a bunch of auxiliary clean-ups and improvements. E.g.,
bpf_program__get_type() and bpf_program__get_expected_attach_type() are added
for completeness and symmetry with corresponding setter APIs. Some clean up
and fixes in selftests/bpf are done as well.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>