]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Use libbpf_bpf_map_type_str
authorDaniel Müller <deso@posteo.net>
Mon, 23 May 2022 23:04:22 +0000 (23:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:24 +0000 (16:26 -0700)
commit3add328a660a01ffa312bae9132d43cb59108ba3
tree531451f06709f20a67f53ca60ed133390db72c35
parentf4b66f61bb15e9ac1a2853556733653f379853c8
bpftool: Use libbpf_bpf_map_type_str

This change switches bpftool over to using the recently introduced
libbpf_bpf_map_type_str function instead of maintaining its own string
representation for the bpf_map_type enum.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220523230428.3077108-7-deso@posteo.net
tools/bpf/bpftool/feature.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/map.c
tools/testing/selftests/bpf/test_bpftool_synctypes.py