summaryrefslogtreecommitdiffstats
path: root/arch/x86/net
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2018-05-02 14:20:24 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-02 17:46:50 +0200
commit6f96674dbd8ca659769f1c65ca15638e50b69341 (patch)
treec755dc183829afcd09f9988a52da26842801b5c6 /arch/x86/net
parenta2c7a98301d9f9bcfc4244de04252a04c0b68a79 (diff)
downloadlinux-6f96674dbd8ca659769f1c65ca15638e50b69341.tar.gz
linux-6f96674dbd8ca659769f1c65ca15638e50b69341.tar.bz2
linux-6f96674dbd8ca659769f1c65ca15638e50b69341.zip
bpf: relax constraints on formatting for eBPF helper documentation
The Python script used to parse and extract eBPF helpers documentation from include/uapi/linux/bpf.h expects a very specific formatting for the descriptions (single dot represents a space, '>' stands for a tab): /* ... *.int bpf_helper(list of arguments) *.> Description *.> > Start of description *.> > Another line of description *.> > And yet another line of description *.> Return *.> > 0 on success, or a negative error in case of failure ... */ This is too strict, and painful for developers who wants to add documentation for new helpers. Worse, it is extremely difficult to check that the formatting is correct during reviews. Change the format expected by the script and make it more flexible. The script now works whether or not the initial space (right after the star) is present, and accepts both tabs and white spaces (or a combination of both) for indenting description sections and contents. Concretely, something like the following would now be supported: /* ... *int bpf_helper(list of arguments) *......Description *.> > Start of description... *> > Another line of description *..............And yet another line of description *> Return *.> ........0 on success, or a negative error in case of failure ... */ While at it, remove unnecessary carets from each regex used with match() in the script. They are redundant, as match() tries to match from the beginning of the string by default. v2: Remove unnecessary caret when a regex is used with match(). Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/x86/net')
0 files changed, 0 insertions, 0 deletions