diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-01-20 16:49:30 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-01-21 14:28:14 +0100 |
commit | 8757834d145a06b845aa0bb6bdfd4f93971b8d74 (patch) | |
tree | 719e911d4b011d28796f22a67cbbe63bf8112592 /util.c | |
parent | c96a88d550fcda3f1972aee395fcfda19905d0a4 (diff) | |
download | passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar.gz passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar.bz2 passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar.lz passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar.xz passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.tar.zst passt-8757834d145a06b845aa0bb6bdfd4f93971b8d74.zip |
tcp: Buffer sizes are *not* inherited on accept()/accept4()
...so it's pointless to set SO_RCVBUF and SO_SNDBUF on listening
sockets.
Call tcp_sock_set_bufsize() after accept4(), for inbound sockets.
As we didn't have large buffer sizes set for inbound sockets for
a long time (they are set explicitly only if the maximum size is
big enough, more than than the ~200 KiB default), I ran some more
throughput tests for this one, and I see slightly better numbers
(say, 17 gbps instead of 15 gbps guest to host without vhost-user).
Fixes: 904b86ade7db ("tcp: Rework window handling, timers, add SO_RCVLOWAT and pools for sockets/pipes")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions