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

2018-07-30 Thread Yonghong Song
On 7/30/18 5:42 PM, 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 v2 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):