From: Frédéric Lécaille Date: Tue, 23 Nov 2021 10:36:51 +0000 (+0100) Subject: MINOR: quic: Rename qc_prep_hdshk_pkts() to qc_prep_pkts() X-Git-Tag: v2.6-dev1~355 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2660e61e271bf90c8e4d9a5ceb3c743e1ec36a4;p=thirdparty%2Fhaproxy.git MINOR: quic: Rename qc_prep_hdshk_pkts() to qc_prep_pkts() qc_prep_hdshk_pkts() does not prepare only handshake packets but any type of packet. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index f0e75d85ee..dcff7534fc 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2172,14 +2172,14 @@ static inline void qc_set_dg(struct cbuf *cbuf, cb_add(cbuf, dglen + sizeof dglen + sizeof pkt); } -/* Prepare as much as possible handshake packets into ring buffer for +/* Prepare as much as possible packets into ring buffer for * the QUIC connection with as I/O handler context, possibly concatenating * several packets in the same datagram. A header made of two fields is added * to each datagram: the datagram length followed by the address of the first * packet in this datagram. * Returns 1 if succeeded, or 0 if something wrong happened. */ -static int qc_prep_hdshk_pkts(struct qring *qr, struct ssl_sock_ctx *ctx) +static int qc_prep_pkts(struct qring *qr, struct ssl_sock_ctx *ctx) { struct quic_conn *qc; enum quic_tls_enc_level tel, next_tel; @@ -2913,7 +2913,7 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state) if (!qr) qr = MT_LIST_POP(qc->tx.qring_list, typeof(qr), mt_list); - ret = qc_prep_hdshk_pkts(qr, ctx); + ret = qc_prep_pkts(qr, ctx); if (ret == -1) goto err; else if (ret == 0)