]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Move quic_rxbuf_pool pool out of xprt part
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 15 Feb 2022 15:59:48 +0000 (16:59 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Feb 2022 16:33:21 +0000 (17:33 +0100)
This pool could be confuse with that of the RX buffer pool for the connection
(quic_conn_rxbuf).

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

index 66912ef482d6a361f02836130ff6afea6ae35b2e..ace547634e05754a1bfe6214d4539727d2df9c32 100644 (file)
@@ -248,7 +248,6 @@ enum quic_pkt_type {
 
 extern struct trace_source trace_quic;
 extern struct pool_head *pool_head_quic_tx_ring;
-extern struct pool_head *pool_head_quic_rxbuf;
 extern struct pool_head *pool_head_quic_rx_packet;
 extern struct pool_head *pool_head_quic_tx_packet;
 extern struct pool_head *pool_head_quic_frame;
index e3ea5094f7b383de6ec239a041da512feefcc725..a0b4147f5b03bca9ae5b94197688429b32791569 100644 (file)
 /* per-thread quic datagram handlers */
 struct quic_dghdlr *quic_dghdlrs;
 
+/* Size of the internal buffer of QUIC RX buffer at the fd level */
+#define QUIC_RX_BUFSZ  (1UL << 18)
+
+DECLARE_STATIC_POOL(pool_head_quic_rxbuf, "quic_rxbuf_pool", QUIC_RX_BUFSZ);
+
 static void quic_add_listener(struct protocol *proto, struct listener *listener);
 static int quic_bind_listener(struct listener *listener, char *errmsg, int errlen);
 static int quic_connect_server(struct connection *conn, int flags);
index a50666727d3401699f0325478799ff056f266f52..0048f7b1325f016751f44e2f119c34ffdfdf7432 100644 (file)
@@ -154,7 +154,6 @@ INITCALL1(STG_REGISTER, trace_register_source, TRACE_SOURCE);
 static BIO_METHOD *ha_quic_meth;
 
 DECLARE_POOL(pool_head_quic_tx_ring, "quic_tx_ring_pool", QUIC_TX_RING_BUFSZ);
-DECLARE_POOL(pool_head_quic_rxbuf, "quic_rxbuf_pool", QUIC_RX_BUFSZ);
 DECLARE_POOL(pool_head_quic_conn_rxbuf, "quic_conn_rxbuf", QUIC_CONN_RX_BUFSZ);
 DECLARE_STATIC_POOL(pool_head_quic_conn_ctx,
                     "quic_conn_ctx_pool", sizeof(struct ssl_sock_ctx));