bpftool: Add bash-completion for tcx subcommand

This commit adds bash-completion for attaching tcx program on interface.

Signed-off-by: Tao Chen <chen.dylane@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20240721144238.96246-1-chen.dylane@gmail.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
Tao Chen 2024-07-21 22:42:38 +08:00 committed by Andrii Nakryiko
parent 3b9d4fee8a
commit 4f88dde0e1

View File

@ -1079,7 +1079,7 @@ _bpftool()
esac
;;
net)
local ATTACH_TYPES='xdp xdpgeneric xdpdrv xdpoffload'
local ATTACH_TYPES='xdp xdpgeneric xdpdrv xdpoffload tcx_ingress tcx_egress'
case $command in
show|list)
[[ $prev != "$command" ]] && return 0