Re: [PATCH net-next v2 1/4] cgroup: Add cgroup_get_from_fd

2016-06-23 Thread Tejun Heo
On Wed, Jun 22, 2016 at 02:17:29PM -0700, Martin KaFai Lau wrote: > Add a helper function to get a cgroup2 from a fd. It will be > stored in a bpf array (BPF_MAP_TYPE_CGROUP_ARRAY) which will > be introduced in the later patch. > > Signed-off-by: Martin KaFai Lau > Cc: Alexei Starovoitov > Cc:

[PATCH net-next v2 1/4] cgroup: Add cgroup_get_from_fd

2016-06-22 Thread Martin KaFai Lau
Add a helper function to get a cgroup2 from a fd. It will be stored in a bpf array (BPF_MAP_TYPE_CGROUP_ARRAY) which will be introduced in the later patch. Signed-off-by: Martin KaFai Lau Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Tejun Heo --- include/linux/cgroup.h | 1 + kernel/cgrou