From 22cfdf8d0eacc8c1b8dd9997227e40b9dabaca35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 6 Jul 2021 15:34:37 +0200 Subject: [PATCH] MINOR: quic: Add ring buffer definition (struct qring) for QUIC A ring buffer is made of a circular buffer (->cbuf) and must be arrange in a MT_LIST (->mt_list). --- include/haproxy/xprt_quic-t.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index da09d5a69..0e5671ed9 100644 --- a/include/haproxy/xprt_quic-t.h +++ b/include/haproxy/xprt_quic-t.h @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -574,6 +575,12 @@ struct quic_path { uint64_t ifae_pkts; }; +/* QUIC ring buffer */ +struct qring { + struct cbuf *cbuf; + struct mt_list mt_list; +}; + /* The number of buffers for outgoing packets (must be a power of two). */ #define QUIC_CONN_TX_BUFS_NB 8 #define QUIC_CONN_TX_BUF_SZ QUIC_PACKET_MAXLEN