]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Use libbpf_bpf_link_type_str
authorDaniel Müller <deso@posteo.net>
Mon, 23 May 2022 23:04:28 +0000 (23:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:38 +0000 (16:26 -0700)
commit0a55908ca00d770e4779ff979f20b3cbdac44200
tree9725374bdf40f5297876023dd660efa21f5cb9b1
parente5fcf92fe68f1b04dcce0329f6862ecc2eed0e23
bpftool: Use libbpf_bpf_link_type_str

This change switches bpftool over to using the recently introduced
libbpf_bpf_link_type_str function instead of maintaining its own string
representation for the bpf_link_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>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220523230428.3077108-13-deso@posteo.net
tools/bpf/bpftool/link.c