Messages in this thread | | | Subject | Re: [PATCH bpf-next] bpf: introduce update_effective_progs() | From | Daniel Borkmann <> | Date | Tue, 7 Aug 2018 14:31:20 +0200 |
| |
On 08/06/2018 11:27 PM, Roman Gushchin wrote: > __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>
Applied to bpf-next, thanks Roman!
| |