diff options
author | John Fastabend <john.fastabend@gmail.com> | 2020-08-01 01:09:14 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-02 06:20:59 +0300 |
commit | 4939b2847d26c025e2e2118744226967f239a1ac (patch) | |
tree | 0051e49fa8855a6a93da7dbcd4b7d054281d731b /kernel/bpf | |
parent | ffba964e4d1126bef5d636e8af70f052e50342fc (diff) | |
download | linux-4939b2847d26c025e2e2118744226967f239a1ac.tar.xz |
bpf, selftests: Use single cgroup helpers for both test_sockmap/progs
Nearly every user of cgroup helpers does the same sequence of API calls. So
push these into a single helper cgroup_setup_and_join. The cases that do
a bit of extra logic are test_progs which currently uses an env variable
to decide if it needs to setup the cgroup environment or can use an
existingi environment. And then tests that are doing cgroup tests
themselves. We skip these cases for now.
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/159623335418.30208.15807461815525100199.stgit@john-XPS-13-9370
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions