From 53898bba815bf635b90c52e4a154ecba3a1de7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 26 Jan 2022 15:55:21 +0100 Subject: [PATCH] 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. --- include/haproxy/xprt_quic-t.h | 1 + src/proto_quic.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index 0ed818a9a..6e22fe1b3 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 4307ceee1..c12c8e134 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); }