Re: [Patch bpf-next v2 9/9] selftests/bpf: add a test case for udp sockmap
From: Lorenz Bauer <hidden>
Date: 2021-03-03 22:56:52
Also in:
bpf
On Tue, 2 Mar 2021 at 18:05, Cong Wang [off-list ref] wrote:
On Tue, Mar 2, 2021 at 8:32 AM Lorenz Bauer [off-list ref] wrote:quoted
On Tue, 2 Mar 2021 at 02:38, Cong Wang [off-list ref] wrote:quoted
From: Cong Wang <redacted> Add a test case to ensure redirection between two UDP sockets work.I basically don't understand how splicing works, but watching from the sidelines makes me think it'd be good to have more thorough tests. tools/testing/selftests/bpf/test_sockmap.c has quite elaborate tests for the TCP part, it'd be nice to get similar tests going for UDP. ForSure, TCP supports more than just BPF_SK_SKB_VERDICT, hence why it must have more tests than UDP. ;)quoted
example: * sendfile? * sendmmsgDoes UDP support any of these? I don't think so, at least not in my patchset.
I have no idea, thanks for checking :)
quoted
* Something Jakub mentioned: what happens when a connected, spliced socket is disconnected via connect(AF_UNSPEC)? Seems like we don't hook sk_prot->disconnect anywhere.But we hook ->unhash(), right?
I wasn't aware that ->disconnect calls unhash, thanks! -- Lorenz Bauer | Systems Engineer 6th Floor, County Hall/The Riverside Building, SE1 7PB, UK www.cloudflare.com