A ring buffer is made of a circular buffer (->cbuf) and must be arrange
in a MT_LIST (->mt_list).
#include <sys/socket.h>
#include <openssl/ssl.h>
+#include <haproxy/cbuf-t.h>
#include <haproxy/list.h>
#include <haproxy/quic_cc-t.h>
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