]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: libbpf: remove map name retry from bpf_create_map_xattr
authorStanislav Fomichev <sdf@google.com>
Wed, 21 Nov 2018 01:11:20 +0000 (17:11 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 21 Nov 2018 22:26:04 +0000 (23:26 +0100)
commit23dd17adc60191e9c88ab5c5742e5039612348b4
tree0e274f0cd618cb816e0432d048d1ce67cca498f8
parentb03dc5254b6f1c0548a96cc96aeee2967ce7f38e
bpf: libbpf: remove map name retry from bpf_create_map_xattr

Instead, check for a newly created caps.name bpf_object capability.
If kernel doesn't support names, don't specify the attribute.

See commit 4ab82f01e587 ("bpf: libbpf: retry map creation without
the name") for rationale.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/bpf.c
tools/lib/bpf/libbpf.c