]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tools: bpftool: document restriction on '.' in names to pin in bpffs
authorQuentin Monnet <quentin.monnet@netronome.com>
Sat, 20 Oct 2018 22:01:48 +0000 (23:01 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 21 Oct 2018 18:45:14 +0000 (20:45 +0200)
Names used to pin eBPF programs and maps under the eBPF virtual file
system cannot contain a dot character, which is reserved for future
extensions of this file system.

Document this in bpftool man pages to avoid users getting confused if
pinning fails because of a dot.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Documentation/bpftool-map.rst
tools/bpf/bpftool/Documentation/bpftool-prog.rst

index 3497f2d803284b1a80c89be3142ee4cdbead8355..f55a2daed59b7e8dead1a1fc429dd6a097f2f83f 100644 (file)
@@ -86,7 +86,9 @@ DESCRIPTION
        **bpftool map pin**     *MAP*  *FILE*
                  Pin map *MAP* as *FILE*.
 
-                 Note: *FILE* must be located in *bpffs* mount.
+                 Note: *FILE* must be located in *bpffs* mount. It must not
+                 contain a dot character ('.'), which is reserved for future
+                 extensions of *bpffs*.
 
        **bpftool** **map event_pipe** *MAP* [**cpu** *N* **index** *M*]
                  Read events from a BPF_MAP_TYPE_PERF_EVENT_ARRAY map.
index 12c803003ab29fea648801c09b2e063621e8aa96..ac4e904b10fbd9b4b504d943f62aef0be68f0829 100644 (file)
@@ -75,7 +75,9 @@ DESCRIPTION
        **bpftool prog pin** *PROG* *FILE*
                  Pin program *PROG* as *FILE*.
 
-                 Note: *FILE* must be located in *bpffs* mount.
+                 Note: *FILE* must be located in *bpffs* mount. It must not
+                 contain a dot character ('.'), which is reserved for future
+                 extensions of *bpffs*.
 
        **bpftool prog load** *OBJ* *FILE* [**type** *TYPE*] [**map** {**idx** *IDX* | **name** *NAME*} *MAP*] [**dev** *NAME*]
                  Load bpf program from binary *OBJ* and pin as *FILE*.
@@ -91,7 +93,9 @@ DESCRIPTION
                  If **dev** *NAME* is specified program will be loaded onto
                  given networking device (offload).
 
-                 Note: *FILE* must be located in *bpffs* mount.
+                 Note: *FILE* must be located in *bpffs* mount. It must not
+                 contain a dot character ('.'), which is reserved for future
+                 extensions of *bpffs*.
 
         **bpftool prog attach** *PROG* *ATTACH_TYPE* *MAP*
                   Attach bpf program *PROG* (with type specified by *ATTACH_TYPE*)