Home
last modified time | relevance | path

Searched refs:cgrp (Results 1 – 3 of 3) sorted by relevance

/net/netfilter/
Dxt_cgroup.c39 struct cgroup *cgrp; in cgroup_mt_check_v1() local
56 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v1()
57 if (IS_ERR(cgrp)) { in cgroup_mt_check_v1()
59 PTR_ERR(cgrp)); in cgroup_mt_check_v1()
62 info->priv = cgrp; in cgroup_mt_check_v1()
71 struct cgroup *cgrp; in cgroup_mt_check_v2() local
88 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v2()
89 if (IS_ERR(cgrp)) { in cgroup_mt_check_v2()
91 PTR_ERR(cgrp)); in cgroup_mt_check_v2()
94 info->priv = cgrp; in cgroup_mt_check_v2()
Dnft_socket.c41 struct cgroup *cgrp; in nft_sock_get_eval_cgroupv2() local
46 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in nft_sock_get_eval_cgroupv2()
47 if (level > cgrp->level) in nft_sock_get_eval_cgroupv2()
50 memcpy(dest, &cgrp->ancestor_ids[level], sizeof(u64)); in nft_sock_get_eval_cgroupv2()
/net/core/
Dfilter.c4462 struct cgroup *cgrp; in BPF_CALL_3() local
4471 cgrp = READ_ONCE(array->ptrs[idx]); in BPF_CALL_3()
4472 if (unlikely(!cgrp)) in BPF_CALL_3()
4475 return sk_under_cgroup_hierarchy(sk, cgrp); in BPF_CALL_3()
4490 struct cgroup *cgrp; in __bpf_sk_cgroup_id() local
4496 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_cgroup_id()
4497 return cgroup_id(cgrp); in __bpf_sk_cgroup_id()
4516 struct cgroup *cgrp; in __bpf_sk_ancestor_cgroup_id() local
4522 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_ancestor_cgroup_id()
4523 ancestor = cgroup_ancestor(cgrp, ancestor_level); in __bpf_sk_ancestor_cgroup_id()