Re: [PATCH bpf-next 4/4] selftests/bpf: Test for get_socket_cookie

2018-07-30 Thread Andrey Ignatov
Yonghong Song [Mon, 2018-07-30 16:59 -0700]: > > > On 7/30/18 9:04 AM, Andrey Ignatov wrote: > > Add test to use get_socket_cookie() from BPF programs of types > > BPF_PROG_TYPE_SOCK_OPS and BPF_PROG_TYPE_CGROUP_SOCK_ADDR. > > > > The test attaches two programs to cgroup, runs TCP server and cl

Re: [PATCH bpf-next 4/4] selftests/bpf: Test for get_socket_cookie

2018-07-30 Thread Yonghong Song
On 7/30/18 9:04 AM, Andrey Ignatov wrote: Add test to use get_socket_cookie() from BPF programs of types BPF_PROG_TYPE_SOCK_OPS and BPF_PROG_TYPE_CGROUP_SOCK_ADDR. The test attaches two programs to cgroup, runs TCP server and client in the cgroup and checks that two operations are done proper

[PATCH bpf-next 4/4] selftests/bpf: Test for get_socket_cookie

2018-07-30 Thread Andrey Ignatov
Add test to use get_socket_cookie() from BPF programs of types BPF_PROG_TYPE_SOCK_OPS and BPF_PROG_TYPE_CGROUP_SOCK_ADDR. The test attaches two programs to cgroup, runs TCP server and client in the cgroup and checks that two operations are done properly on client socket when user calls connect(2):