Skip to content

Commit a5d9265

Browse files
albanborkmann
authored andcommitted
bpf: bpftool, fix documentation for attach types
bpftool has support for attach types "stream_verdict" and "stream_parser" but the documentation was referring to them as "skb_verdict" and "skb_parse". The inconsistency comes from commit b7d3826 ("bpf: bpftool, add support for attaching programs to maps"). This patch changes the documentation to match the implementation: - "bpftool prog help" - man pages - bash completion Signed-off-by: Alban Crequy <alban@kinvolk.io> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent c9b747d commit a5d9265

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/bpf/bpftool/Documentation/bpftool-prog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PROG COMMANDS
4242
| **cgroup/connect4** | **cgroup/connect6** | **cgroup/sendmsg4** | **cgroup/sendmsg6**
4343
| }
4444
| *ATTACH_TYPE* := {
45-
| **msg_verdict** | **skb_verdict** | **skb_parse** | **flow_dissector**
45+
| **msg_verdict** | **stream_verdict** | **stream_parser** | **flow_dissector**
4646
| }
4747
4848

tools/bpf/bpftool/bash-completion/bpftool

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ _bpftool()
311311
return 0
312312
;;
313313
5)
314-
COMPREPLY=( $( compgen -W 'msg_verdict skb_verdict \
315-
skb_parse flow_dissector' -- "$cur" ) )
314+
COMPREPLY=( $( compgen -W 'msg_verdict stream_verdict \
315+
stream_parser flow_dissector' -- "$cur" ) )
316316
return 0
317317
;;
318318
6)

tools/bpf/bpftool/prog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ static int do_help(int argc, char **argv)
11991199
" cgroup/bind4 | cgroup/bind6 | cgroup/post_bind4 |\n"
12001200
" cgroup/post_bind6 | cgroup/connect4 | cgroup/connect6 |\n"
12011201
" cgroup/sendmsg4 | cgroup/sendmsg6 }\n"
1202-
" ATTACH_TYPE := { msg_verdict | skb_verdict | skb_parse |\n"
1202+
" ATTACH_TYPE := { msg_verdict | stream_verdict | stream_parser |\n"
12031203
" flow_dissector }\n"
12041204
" " HELP_SPEC_OPTIONS "\n"
12051205
"",

0 commit comments

Comments
 (0)