Skip to content

Commit 2148481

Browse files
qmonnetborkmann
authored andcommitted
tools: bpftool: make syntax for program map update explicit in man page
Specify in the documentation that when using bpftool to update a map of type BPF_MAP_TYPE_PROG_ARRAY, the syntax for the program used as a value should use the "id|tag|pinned" keywords convention, as used with "bpftool prog" commands. Fixes: ff69c21 ("tools: bpftool: add documentation") Signed-off-by: Quentin Monnet <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 9242682 commit 2148481

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ MAP COMMANDS
3131
| **bpftool** **map help**
3232
|
3333
| *MAP* := { **id** *MAP_ID* | **pinned** *FILE* }
34-
| *VALUE* := { *BYTES* | *MAP* | *PROGRAM* }
34+
| *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* }
35+
| *VALUE* := { *BYTES* | *MAP* | *PROG* }
3536
| *UPDATE_FLAGS* := { **any** | **exist** | **noexist** }
3637
3738
DESCRIPTION

0 commit comments

Comments
 (0)