bpf: add sockopt documentation
authorStanislav Fomichev <sdf@google.com>
Thu, 27 Jun 2019 20:38:54 +0000 (13:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Jun 2019 22:25:17 +0000 (15:25 -0700)
commit0c51b3697a446e904e9e9fb70bbd7d08606a329a
tree6d9738d6738dba5c9f353b6503a7fd9907d1b2ed
parent65b4414a05ebf51966c4a28a2a1b156ab5a01b0f
bpf: add sockopt documentation

Provide user documentation about sockopt prog type and cgroup hooks.

v9:
* add details about setsockopt context and inheritance

v7:
* add description for retval=0 and optlen=-1

v6:
* describe cgroup chaining, add example

v2:
* use return code 2 for kernel bypass

Cc: Andrii Nakryiko <andriin@fb.com>
Cc: Martin Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/index.rst
Documentation/bpf/prog_cgroup_sockopt.rst [new file with mode: 0644]