• R
    selftests/bpf: add a cgroup storage test · 68cfa3ac
    Roman Gushchin 提交于
    Implement a test to cover the cgroup storage functionality.
    The test implements a bpf program which drops every second packet
    by using the cgroup storage as a persistent storage.
    
    The test also use the userspace API to check the data
    in the cgroup storage, alter it, and check that the loaded
    and attached bpf program sees the update.
    
    Expected output:
      $ ./test_cgroup_storage
      test_cgroup_storage:PASS
    Signed-off-by: NRoman Gushchin <guro@fb.com>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Acked-by: NMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
    68cfa3ac
Makefile 4.2 KB