summaryrefslogtreecommitdiffstats
path: root/Documentation/bpf/prog_cgroup_sockopt.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpf: Document optval > PAGE_SIZE behavior for sockopt hooksStanislav Fomichev2020-06-171-0/+14
| | | | | | | | | Extend existing doc with more details about requiring ctx->optlen = 0 for handling optval > PAGE_SIZE. Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200617010416.93086-3-sdf@google.com
* bpf: add sockopt documentationStanislav Fomichev2019-06-271-0/+93
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>