diff options
author | Roman Gushchin <guro@fb.com> | 2018-08-06 14:27:28 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-07 14:29:55 +0200 |
commit | 85fc4b16aaf05fc8978d242c556a1711dce15cf8 (patch) | |
tree | ed5bc8047c6756f9abb36933aeff50e21ea76737 /Documentation | |
parent | 0c26159352ba1cdc5a8c8d74131cc19cdfdf9371 (diff) | |
download | linux-85fc4b16aaf05fc8978d242c556a1711dce15cf8.tar.bz2 |
bpf: introduce update_effective_progs()
__cgroup_bpf_attach() and __cgroup_bpf_detach() functions have
a good amount of duplicated code, which is possible to eliminate
by introducing the update_effective_progs() helper function.
The update_effective_progs() calls compute_effective_progs()
and then in case of success it calls activate_effective_progs()
for each descendant cgroup. In case of failure (OOM), it releases
allocated prog arrays and return the error code.
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions