tools/bpftool: Add `link detach` subcommand
authorAndrii Nakryiko <andriin@fb.com>
Fri, 31 Jul 2020 18:28:29 +0000 (11:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 2 Aug 2020 03:38:29 +0000 (20:38 -0700)
commit0e8c7c07f090668566db2030a027a360ffd00938
treea2405379a7b5bf6487caff1ff039c3ebd7d7b5e4
parent90806ccc90bbd0150267a97ae4003269597a6a6c
tools/bpftool: Add `link detach` subcommand

Add ability to force-detach BPF link. Also add missing error message, if
specified link ID is wrong.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200731182830.286260-5-andriin@fb.com
tools/bpf/bpftool/link.c