You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/include/io
Nir Soffer e2e360db7a io: Add helper for setting socket send buffer size
Testing reading and writing from qemu-nbd using a unix domain socket
shows that the platform default send buffer size is too low, leading to
poor performance and hight cpu usage.

Add a helper for setting socket send buffer size to be used in NBD code.
It can also be used in other contexts.

We don't need a helper for receive buffer size since it is not used with
unix domain sockets. This is documented for Linux, and not documented
for macOS.

Failing to set the socket buffer size is not a fatal error, but the
caller may want to warn about the failure.

Signed-off-by: Nir Soffer <nirsof@gmail.com>
Message-ID: <20250517201154.88456-2-nirsof@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
4 weeks ago
..
channel-buffer.h io: Fix Lesser GPL version number 5 years ago
channel-command.h io/command: implement support for win32 3 years ago
channel-file.h io: Introduce qio_channel_file_new_dupfd 1 year ago
channel-null.h io: add a QIOChannelNull equivalent to /dev/null 3 years ago
channel-socket.h io: Add helper for setting socket send buffer size 4 weeks ago
channel-tls.h io: tls: Add qio_channel_tls_bye 4 months ago
channel-util.h io: follow coroutine AioContext in qio_channel_yield() 2 years ago
channel-watch.h io: Fix Lesser GPL version number 5 years ago
channel-websock.h io: Fix Lesser GPL version number 5 years ago
channel.h io: Add a read flag for relaxed EOF 4 months ago
dns-resolver.h io: Fix Lesser GPL version number 5 years ago
net-listener.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 5 years ago
task.h Rename "QEMU global mutex" to "BQL" in comments and docs 1 year ago