diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 26c04be32003..f44504d875e2 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -337,6 +337,17 @@ enum bpf_func_id { | |||
| 337 | */ | 337 | */ |
| 338 | BPF_FUNC_skb_change_type, | 338 | BPF_FUNC_skb_change_type, |
| 339 | 339 | ||
| 340 | /** | ||
| 341 | * bpf_skb_in_cgroup(skb, map, index) - Check cgroup2 membership of skb | ||
| 342 | * @skb: pointer to skb | ||
| 343 | * @map: pointer to bpf_map in BPF_MAP_TYPE_CGROUP_ARRAY type | ||
| 344 | * @index: index of the cgroup in the bpf_map | ||
| 345 | * Return: | ||
| 346 | * == 0 skb failed the cgroup2 descendant test | ||
| 347 | * == 1 skb succeeded the cgroup2 descendant test | ||
| 348 | * < 0 error | ||
| 349 | */ | ||
| 350 | BPF_FUNC_skb_in_cgroup, | ||
| 340 | __BPF_FUNC_MAX_ID, | 351 | __BPF_FUNC_MAX_ID, |
| 341 | }; | 352 | }; |
| 342 | 353 | ||
