Commit 4f88dde0 authored by Tao Chen's avatar Tao Chen Committed by Andrii Nakryiko

bpftool: Add bash-completion for tcx subcommand

This commit adds bash-completion for attaching tcx program on interface.
Signed-off-by: default avatarTao Chen <chen.dylane@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarQuentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20240721144238.96246-1-chen.dylane@gmail.comSigned-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
parent 3b9d4fee
...@@ -1079,7 +1079,7 @@ _bpftool() ...@@ -1079,7 +1079,7 @@ _bpftool()
esac esac
;; ;;
net) net)
local ATTACH_TYPES='xdp xdpgeneric xdpdrv xdpoffload' local ATTACH_TYPES='xdp xdpgeneric xdpdrv xdpoffload tcx_ingress tcx_egress'
case $command in case $command in
show|list) show|list)
[[ $prev != "$command" ]] && return 0 [[ $prev != "$command" ]] && return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment