• Roman Gushchin's avatar
    selftests/bpf: add a cgroup storage test · 68cfa3ac
    Roman Gushchin authored
    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: default avatarRoman Gushchin <guro@fb.com>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    68cfa3ac
Makefile 4.2 KB