Re: [bpf-next v4 3/3] bpftool: Update the bash completion(add auto_attach to prog load)
From: Quentin Monnet
Date: Tue Sep 20 2022 - 11:13:05 EST
Tue Sep 13 2022 03:54:47 GMT+0100 (British Summer Time) ~ Wang Yufen
<wangyufen@xxxxxxxxxx>
> Add auto_attach optional to prog load|loadall for supporting
> one-step load-attach-pin_link.
>
> Signed-off-by: Wang Yufen <wangyufen@xxxxxxxxxx>
> ---
> tools/bpf/bpftool/bash-completion/bpftool | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool
> index dc1641e..3f6f4f9 100644
> --- a/tools/bpf/bpftool/bash-completion/bpftool
> +++ b/tools/bpf/bpftool/bash-completion/bpftool
> @@ -505,6 +505,7 @@ _bpftool()
> _bpftool_once_attr 'type'
> _bpftool_once_attr 'dev'
> _bpftool_once_attr 'pinmaps'
> + _bpftool_once_attr 'auto_attach'
> return 0
> ;;
> esac
Reviewed-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>
Thanks