bpf: Add base proto function for cgroup-bpf programs
authorAndrey Ignatov <rdna@fb.com>
Tue, 12 Mar 2019 16:27:09 +0000 (09:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Apr 2019 20:54:58 +0000 (13:54 -0700)
commitb1cd609d9b517f01867c211bd520cc805db3068a
treef3bfa4455c5fa2343a19b94db4bde429446074cb
parente0a092ebebf714c7b6723cae764fc865e2f8c2a7
bpf: Add base proto function for cgroup-bpf programs

Currently kernel/bpf/cgroup.c contains only one program type and one
proto function cgroup_dev_func_proto(). It'd be useful to have base
proto function that can be reused for new cgroup-bpf program types
coming soon.

Introduce cgroup_base_func_proto().

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/cgroup.c