cgroup: bpf: Add an example to do cgroup checking in BPF
[cascardo/linux.git] / samples / bpf / bpf_helpers.h
index 7904a2a..84e3fd9 100644 (file)
@@ -70,6 +70,8 @@ static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flag
        (void *) BPF_FUNC_l3_csum_replace;
 static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) =
        (void *) BPF_FUNC_l4_csum_replace;
+static int (*bpf_skb_in_cgroup)(void *ctx, void *map, int index) =
+       (void *) BPF_FUNC_skb_in_cgroup;
 
 #if defined(__x86_64__)