]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: get rid of ->li quic_conn member
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 6 Jun 2025 13:20:00 +0000 (15:20 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Jun 2025 16:37:34 +0000 (18:37 +0200)
commitb9703cf711e31d8491b8d8c5349d8162c9cac979
tree5525e5253f83629a875d4eef7acd870b322208c8
parentf6ef3bbc8a2d54d91489fdc4ecd01faec71289a6
MINOR: quic-be: get rid of ->li quic_conn member

Replace ->li quic_conn pointer to struct listener member by  ->target which is
an object type enum and adapt the code.
Use __objt_(listener|server)() where the object type is known. Typically
this is were the code which is specific to one connection type (frontend/backend).
Remove <server> parameter passed to qc_new_conn(). It is redundant with the
<target> parameter.
GSO is not supported at this time for QUIC backend. qc_prep_pkts() is modified
to prevent it from building more than an MTU. This has as consequence to prevent
qc_send_ppkts() to use GSO.
ssl_clienthello.c code is run only by listeners. This is why __objt_listener()
is used in place of ->li.
14 files changed:
include/haproxy/quic_conn-t.h
include/haproxy/quic_conn.h
include/haproxy/quic_sock.h
src/cli.c
src/quic_cli.c
src/quic_conn.c
src/quic_rx.c
src/quic_sock.c
src/quic_ssl.c
src/quic_tx.c
src/ssl_clienthello.c
src/ssl_ocsp.c
src/ssl_sock.c
src/xprt_quic.c