From: Frédéric Lécaille Date: Tue, 6 Jul 2021 13:34:37 +0000 (+0200) Subject: MINOR: quic: Add ring buffer definition (struct qring) for QUIC X-Git-Tag: v2.5-dev8~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22cfdf8d0eacc8c1b8dd9997227e40b9dabaca35;p=thirdparty%2Fhaproxy.git 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). --- diff --git a/include/haproxy/xprt_quic-t.h b/include/haproxy/xprt_quic-t.h index da09d5a69a..0e5671ed90 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