On Thu, Dec 12, 2019 at 03:30:47PM -0800, Andrey Ignatov wrote: > v1->v2: > - move DECLARE_LIBBPF_OPTS from libbpf.h to bpf.h (patch 4); > - switch new libbpf API to OPTS framework; > - switch selftest to libbpf OPTS framework. > > This patch set adds support for replacing cgroup-bpf programs attached with > BPF_F_ALLOW_MULTI flag so that any program in a list can be updated to a new > version without service interruption and order of programs can be preserved. > > Please see patch 3 for details on the use-case and API changes. > > Other patches: > Patch 1 is preliminary refactoring of __cgroup_bpf_attach to simplify it. > Patch 2 is minor cleanup of hierarchy_allows_attach. > Patch 4 moves DECLARE_LIBBPF_OPTS from libbpf.h to bpf.h > Patch 5 extends libbpf API to support new set of attach attributes. > Patch 6 adds selftest coverage for the new API. lgtm. Andrii, please review patches 4 and 5. I think patch 6 is ok for now, but please consider converting it to test_progs in the future.