]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: clean up eBPF helpers documentation
authorQuentin Monnet <quentin.monnet@netronome.com>
Tue, 29 May 2018 11:27:44 +0000 (12:27 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 29 May 2018 19:42:13 +0000 (21:42 +0200)
commitbfbc905d60201b543220089b57e1b25878976ee8
tree028388c902a8a63b4231eba7e63fd7d2784cf42d
parent8cb540df4d550163b33ff9fbc54c854fb497f7ff
bpf: clean up eBPF helpers documentation

These are minor edits for the eBPF helpers documentation in
include/uapi/linux/bpf.h.

The main fix consists in removing "BPF_FIB_LOOKUP_", because it ends
with a non-escaped underscore that gets interpreted by rst2man and
produces the following message in the resulting manual page:

    DOCUTILS SYSTEM MESSAGES
           System Message: ERROR/3 (/tmp/bpf-helpers.rst:, line 1514)
                  Unknown target name: "bpf_fib_lookup".

Other edits consist in:

- Improving formatting for flag values for "bpf_fib_lookup()" helper.
- Emphasising a parameter name in description of the return value for
  "bpf_get_stack()" helper.
- Removing unnecessary blank lines between "Description" and "Return"
  sections for the few helpers that would use it, for consistency.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h