Add tests for cgroup v2 bpf and new helper functions

Add several bpf program test to verify the new get_socket_cookie and
get_socket_uid helper function cherry-picked to 4.9 kernel. Also, added
a new test class to test the cgroup v2 bpf functionality backported from
upstream. Refactored the bpf assembly program into reusable code blocks.
Added some helper function to avoid duplication of code. Added IPv6 support
for all exisiting tests.

Test: All test added in this patch should pass in all 4.9 kernel

Signed-off-by: Chenbo Feng <fengc@google.com>
Bug: 30950746
Change-Id: I64ead3d1a04985e7499a1fe1cdee58ef580e9313
4 files changed
tree: e5401d77adb2d30d68019598ec50c8f43ea6e3c4
  1. net/