From: Frédéric Lécaille Date: Wed, 26 Jan 2022 14:55:21 +0000 (+0100) Subject: MINOR: quic: Add a list to QUIC sock I/O handler RX buffer X-Git-Tag: v2.6-dev1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53898bba815bf635b90c52e4a154ecba3a1de7e9;p=thirdparty%2Fhaproxy.git MINOR: quic: Add a list to QUIC sock I/O handler RX buffer This list will be used to store datagrams in the rxbuf struct used by the quic_sock_fd_iocb() QUIC sock I/O handler with one rxbuf by thread. --- diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index 0ed818a9a3..6e22fe1b36 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -616,6 +616,7 @@ struct qring { /* QUIC RX buffer */ struct rxbuf { struct buffer buf; + struct list dgrams; struct mt_list mt_list; }; diff --git a/src/proto_quic.c b/src/proto_quic.c index 4307ceee19..c12c8e134c 100644 --- a/src/proto_quic.c +++ b/src/proto_quic.c @@ -591,6 +591,7 @@ static int quic_alloc_rxbufs_listener(struct listener *l) goto err; rxbuf->buf = b_make(buf, QUIC_RX_BUFSZ, 0, 0); + LIST_INIT(&rxbuf->dgrams); MT_LIST_APPEND(&l->rx.rxbuf_list, &rxbuf->mt_list); }