aboutsummaryrefslogtreecommitdiff
path: root/Documentation/bpf/prog_cgroup_sockopt.rst
AgeCommit message (Collapse)AuthorFilesLines
2020-06-17bpf: Document optval > PAGE_SIZE behavior for sockopt hooksGravatar Stanislav Fomichev 1-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
2019-06-27bpf: add sockopt documentationGravatar Stanislav Fomichev 1-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>