MINOR: quic: only use sendmsg() syscall variant
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Feb 2024 09:44:48 +0000 (10:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Feb 2024 15:42:05 +0000 (16:42 +0100)
commit8b950f40fab9231845d2d735289dad349f6cc449
treee6f7a2b5ae9be53dc61e1f7758cccb7033d9f061
parent8de9f8f193c35acc2322abd846bfe79af2fdc85d
MINOR: quic: only use sendmsg() syscall variant

This patch is the direct followup of the previous one :
  MINOR: quic: remove sendto() usage variant

This finalizes qc_snd_buf() simplification by removing send() syscall
usage for quic-conn owned socket. Syscall invocation is merged in a
single code location to the sendmsg() variant.

The only difference for owned socket is that destination address for
sendmsg() is set to NULL. This usage is documented in man 2 sendmsg as
valid for connected sockets. This allows maximum performance by avoiding
unnecessary lookups on kernel socket address tables.

As the previous patch, no functional change should happen here. However,
it will be simpler to extend qc_snd_buf() for GSO usage.
include/haproxy/quic_sock.h
src/quic_sock.c