Re: [PATCH bpf-next 3/3] selftests/bpf: add sockopt clone/inheritance test

2019-08-07 Thread Stanislav Fomichev
On 08/07, Yonghong Song wrote: > > > On 8/7/19 8:47 AM, Stanislav Fomichev wrote: > > Add a test that calls setsockopt on the listener socket which triggers > > BPF program. This BPF program writes to the sk storage and sets > > clone flag. Make sure that sk storage is cloned for a newly > > acce

Re: [PATCH bpf-next 3/3] selftests/bpf: add sockopt clone/inheritance test

2019-08-07 Thread Yonghong Song
On 8/7/19 8:47 AM, Stanislav Fomichev wrote: > Add a test that calls setsockopt on the listener socket which triggers > BPF program. This BPF program writes to the sk storage and sets > clone flag. Make sure that sk storage is cloned for a newly > accepted connection. > > We have two cloned maps

[PATCH bpf-next 3/3] selftests/bpf: add sockopt clone/inheritance test

2019-08-07 Thread Stanislav Fomichev
Add a test that calls setsockopt on the listener socket which triggers BPF program. This BPF program writes to the sk storage and sets clone flag. Make sure that sk storage is cloned for a newly accepted connection. We have two cloned maps in the tests to make sure we hit both cases in bpf_sk_stor