]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add a list to QUIC sock I/O handler RX buffer
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 26 Jan 2022 14:55:21 +0000 (15:55 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jan 2022 15:37:55 +0000 (16:37 +0100)
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.

include/haproxy/xprt_quic-t.h
src/proto_quic.c

index 0ed818a9a3f7daff11cd1547eb2d58911bf94222..6e22fe1b36230c34b5fcb902b28c8067f0d6ddcc 100644 (file)
@@ -616,6 +616,7 @@ struct qring {
 /* QUIC RX buffer */
 struct rxbuf {
        struct buffer buf;
+       struct list dgrams;
        struct mt_list mt_list;
 };
 
index 4307ceee1900bf666f64d575db81d98250db7bc6..c12c8e134cd073b86f814d5b8fc0d3972760894a 100644 (file)
@@ -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);
        }