tools: bpftool: fix bash completion for new map types (queue and stack)
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 30 Nov 2018 16:25:46 +0000 (16:25 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 30 Nov 2018 22:06:06 +0000 (14:06 -0800)
Commit 197c2dac74e4 ("bpf: Add BPF_MAP_TYPE_QUEUE and BPF_MAP_TYPE_STACK
to bpftool-map") added support for queue and stack eBPF map types in
bpftool map handling. Let's update the bash completion accordingly.

Fixes: 197c2dac74e4 ("bpf: Add BPF_MAP_TYPE_QUEUE and BPF_MAP_TYPE_STACK to bpftool-map")
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/bash-completion/bpftool

index b7e6c4f25ad1e3ba9d96f76b1533533e985143f3..9a60080f085f1977d99761ee999cae29a5b6aadb 100644 (file)
@@ -436,7 +436,7 @@ _bpftool()
                                 lru_percpu_hash lpm_trie array_of_maps \
                                 hash_of_maps devmap sockmap cpumap xskmap \
                                 sockhash cgroup_storage reuseport_sockarray \
-                                percpu_cgroup_storage' -- \
+                                percpu_cgroup_storage queue stack' -- \
                                                    "$cur" ) )
                             return 0
                             ;;