Re: [PATCH bpf-next 4/5] selftests/bpf: Prepare test_sock_addr for extension

2018-05-22 Thread Martin KaFai Lau
On Fri, May 18, 2018 at 07:21:12PM -0700, Andrey Ignatov wrote: > test_sock_addr was not easy to extend since it was focused on sys_bind > and sys_connect quite a bit. > > Reorganized it so that it'll be easier to cover new test-cases for > `BPF_PROG_TYPE_CGROUP_SOCK_ADDR`: > > - decouple test-ca

[PATCH bpf-next 4/5] selftests/bpf: Prepare test_sock_addr for extension

2018-05-18 Thread Andrey Ignatov
test_sock_addr was not easy to extend since it was focused on sys_bind and sys_connect quite a bit. Reorganized it so that it'll be easier to cover new test-cases for `BPF_PROG_TYPE_CGROUP_SOCK_ADDR`: - decouple test-cases so that only one BPF prog is tested at a time; - check programmatically t