From: Frederic Lecaille Date: Fri, 26 Jul 2024 14:30:57 +0000 (+0200) Subject: MINOR: quic: Dump TX in flight bytes vs window values ratio. X-Git-Tag: v3.1-dev5~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4abaadd842de23e25938e32add86ab37d8f67e24;p=thirdparty%2Fhaproxy.git MINOR: quic: Dump TX in flight bytes vs window values ratio. Display the ratio of the numbers of bytes in flight by packet number spaces versus the current window values in percent. --- diff --git a/src/quic_cli.c b/src/quic_cli.c index d5eda2e6a0..3a1923e6c4 100644 --- a/src/quic_cli.c +++ b/src/quic_cli.c @@ -282,20 +282,23 @@ static void dump_quic_full(struct show_quic_ctx *ctx, struct quic_conn *qc) if (ctx->fields & QUIC_DUMP_FLD_PKTNS) { pktns = qc->ipktns; if (pktns) { - chunk_appendf(&trash, " [initl] rx.ackrng=%-6zu tx.inflight=%-6zu\n", - pktns->rx.arngs.sz, pktns->tx.in_flight); + chunk_appendf(&trash, " [initl] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n", + pktns->rx.arngs.sz, pktns->tx.in_flight, + pktns->tx.in_flight * 100 / qc->path->cwnd); } pktns = qc->hpktns; if (pktns) { - chunk_appendf(&trash, " [hndshk] rx.ackrng=%-6zu tx.inflight=%-6zu\n", - pktns->rx.arngs.sz, pktns->tx.in_flight); + chunk_appendf(&trash, " [hndshk] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n", + pktns->rx.arngs.sz, pktns->tx.in_flight, + pktns->tx.in_flight * 100 / qc->path->cwnd); } pktns = qc->apktns; if (pktns) { - chunk_appendf(&trash, " [01rtt] rx.ackrng=%-6zu tx.inflight=%-6zu\n", - pktns->rx.arngs.sz, pktns->tx.in_flight); + chunk_appendf(&trash, " [01rtt] rx.ackrng=%-6zu tx.inflight=%-6zu(%ld%%)\n", + pktns->rx.arngs.sz, pktns->tx.in_flight, + pktns->tx.in_flight * 100 / qc->path->cwnd); } }