diff mbox series

[bpf-next,1/5] tools: bpftool: add doc for -m option to bpftool-prog.rst

Message ID 1544793998-31366-2-git-send-email-quentin.monnet@netronome.com
State Superseded, archived
Delegated to: BPF Maintainers
Headers show
Series tools: bpftool: clean up code and documentation | expand

Commit Message

Quentin Monnet Dec. 14, 2018, 1:26 p.m. UTC
The --mapcompat|-m option has been documented on the main bpftool.rst
page, and on the interactive help. As this option is useful for loading
programs with maps with the "bpftool prog load" command, it should also
appear in the related bpftool-prog.rst documentation page. Let's add it.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---
 tools/bpf/bpftool/Documentation/bpftool-prog.rst | 3 +++
 1 file changed, 3 insertions(+)

Comments

Quentin Monnet Dec. 14, 2018, 1:43 p.m. UTC | #1
2018-12-14 13:26 UTC+0000 ~ Quentin Monnet <quentin.monnet@netronome.com>
> The --mapcompat|-m option has been documented on the main bpftool.rst
> page, and on the interactive help. As this option is useful for loading
> programs with maps with the "bpftool prog load" command, it should also
> appear in the related bpftool-prog.rst documentation page. Let's add it.
> 
> Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
> ---
>  tools/bpf/bpftool/Documentation/bpftool-prog.rst | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tools/bpf/bpftool/Documentation/bpftool-prog.rst b/tools/bpf/bpftool/Documentation/bpftool-prog.rst
> index dadf8ffe33c5..0bf4c26c3b31 100644
> --- a/tools/bpf/bpftool/Documentation/bpftool-prog.rst
> +++ b/tools/bpf/bpftool/Documentation/bpftool-prog.rst
> @@ -158,6 +158,9 @@ OPTIONS
>  		  When showing BPF programs, show file names of pinned
>  		  programs.
>  
> +	-m, --mapcompat
> +		  Allow loading maps with unknown map definitions.
> +
>  	-n, --nomount
>  		  Do not automatically attempt to mount any virtual file system
>  		  (such as tracefs or BPF virtual file system) when necessary.
> 

Sorry, this one won't apply, the "--nomount" option above will come in
another set. I'll resend my series.
diff mbox series

Patch

diff --git a/tools/bpf/bpftool/Documentation/bpftool-prog.rst b/tools/bpf/bpftool/Documentation/bpftool-prog.rst
index dadf8ffe33c5..0bf4c26c3b31 100644
--- a/tools/bpf/bpftool/Documentation/bpftool-prog.rst
+++ b/tools/bpf/bpftool/Documentation/bpftool-prog.rst
@@ -158,6 +158,9 @@  OPTIONS
 		  When showing BPF programs, show file names of pinned
 		  programs.
 
+	-m, --mapcompat
+		  Allow loading maps with unknown map definitions.
+
 	-n, --nomount
 		  Do not automatically attempt to mount any virtual file system
 		  (such as tracefs or BPF virtual file system) when necessary.