selftests/bpf: Add cgroup id helpers to bpf_helpers.h
authorAndrey Ignatov <rdna@fb.com>
Sun, 12 Aug 2018 17:49:29 +0000 (10:49 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 12 Aug 2018 23:02:39 +0000 (01:02 +0200)
commit02f6ac7456a0d77360cb47b8d2ed4366b883096d
treee33af1b56e5261b94c764ca1e7b5d74ce2bcd21c
parent539764d07b49c5b322cc065d275f65df275e4991
selftests/bpf: Add cgroup id helpers to bpf_helpers.h

Add bpf_skb_cgroup_id and bpf_skb_ancestor_cgroup_id helpers to
bpf_helpers.h to use them in tests and samples.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/bpf_helpers.h