]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: Fix helpers ctx struct types in uapi doc
authorAndrey Ignatov <rdna@fb.com>
Sat, 28 Apr 2018 23:06:19 +0000 (16:06 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 29 Apr 2018 15:56:31 +0000 (08:56 -0700)
commita3ef8e9a4d7cc26d7528d50d10c5720b523b07c9
tree0c09005b1b5736fd0a4c44b043b1d98253b613dc
parentf60ad0a0c441530280a4918eca781a6a94dffa50
bpf: Fix helpers ctx struct types in uapi doc

Helpers may operate on two types of ctx structures: user visible ones
(e.g. `struct bpf_sock_ops`) when used in user programs, and kernel ones
(e.g. `struct bpf_sock_ops_kern`) in kernel implementation.

UAPI documentation must refer to only user visible structures.

The patch replaces references to `_kern` structures in BPF helpers
description by corresponding user visible structures.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h