Thread (14 messages) flat view 14 messages, 5 authors, 2019-08-13

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

From: Yonghong Song <hidden>
Date: 2019-08-11 23:55:15
Also in: bpf


On 8/9/19 9:10 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 in the tests to make sure we hit both cases
in bpf_sk_storage_clone: first element (sk_storage_alloc) and
non-first element(s) (selem_link_map).

Cc: Martin KaFai Lau <redacted>
Cc: Yonghong Song <redacted>
Signed-off-by: Stanislav Fomichev <redacted>
Acked-by: Yonghong Song <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help