]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add documentation for eBPF helpers (65-66)
authorQuentin Monnet <quentin.monnet@netronome.com>
Wed, 25 Apr 2018 17:17:00 +0000 (18:17 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Apr 2018 22:21:59 +0000 (00:21 +0200)
commit8192c32282e5b88c03e96208f6b91ee4ad60dbfd
tree79499784e1df57ca7105472067b280011b6de0bf
parent44908568a0e097fcaefe4caffe768c0dcff7b602
bpf: add documentation for eBPF helpers (65-66)

Add documentation for eBPF helper functions to bpf.h user header file.
This documentation can be parsed with the Python script provided in
another commit of the patch series, in order to provide a RST document
that can later be converted into a man page.

The objective is to make the documentation easily understandable and
accessible to all eBPF developers, including beginners.

This patch contains descriptions for the following helper functions:

Helper from Nikita:
- bpf_xdp_adjust_tail()

Helper from Eyal:
- bpf_skb_get_xfrm_state()

v4:
- New patch (helpers did not exist yet for previous versions).

Cc: Nikita V. Shirokov <tehnerd@tehnerd.com>
Cc: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/uapi/linux/bpf.h