]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sockmap sample, use fork() for send and recv
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 22 Jan 2018 18:36:02 +0000 (10:36 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 24 Jan 2018 09:46:58 +0000 (10:46 +0100)
commit369417148399da81acab460540e0d49289182c4d
treec4bbe95e21dc0c2ef86e255c524466e31f5b484e
parent63aadbc28b5ca9805bde25663f58387d688da434
bpf: sockmap sample, use fork() for send and recv

Currently for SENDMSG tests first send completes then recv runs. This
does not work well for large data sizes and/or many iterations. So
fork the recv and send handler so that we run both send and recv. In
the future we can add a parameter to do more than a single fork of
tx/rx.

With this we can get many GBps of data which helps exercise the
sockmap code.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/sockmap/sockmap_user.c