From: Frédéric Lécaille Date: Mon, 13 Feb 2023 17:39:19 +0000 (+0100) Subject: MINOR: quic: Add to the traces X-Git-Tag: v2.8-dev5~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4540053fa6cefbcd4439454100da606687d61a23;p=thirdparty%2Fhaproxy.git MINOR: quic: Add to the traces This may be useful to diagnose issues in relation with QUIC recovery. Must be backported to 2.7. --- diff --git a/src/quic_conn.c b/src/quic_conn.c index 36afa583a1..f2b5c84ed4 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -363,9 +363,10 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace if (qel) { const struct quic_pktns *pktns = qel->pktns; - chunk_appendf(&trace_buf, " qel=%c cwnd=%llu ppif=%lld pif=%llu " + chunk_appendf(&trace_buf, " qel=%c pto_count=%d cwnd=%llu ppif=%lld pif=%llu " "if=%llu pp=%u", quic_enc_level_char_from_qel(qel, qc), + qc->path->loss.pto_count, (unsigned long long)qc->path->cwnd, (unsigned long long)qc->path->prep_in_flight, (unsigned long long)qc->path->in_flight, @@ -468,10 +469,11 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace if (qel) { const struct quic_pktns *pktns = qel->pktns; chunk_appendf(&trace_buf, - " qel=%c state=%s ack?%d cwnd=%llu ppif=%lld pif=%llu if=%llu pp=%u off=%llu", + " qel=%c state=%s ack?%d pto_count=%d cwnd=%llu ppif=%lld pif=%llu if=%llu pp=%u off=%llu", quic_enc_level_char_from_qel(qel, qc), quic_hdshk_state_str(qc->state), !!(qel->pktns->flags & QUIC_FL_PKTNS_ACK_REQUIRED), + qc->path->loss.pto_count, (unsigned long long)qc->path->cwnd, (unsigned long long)qc->path->prep_in_flight, (unsigned long long)qc->path->in_flight, @@ -614,7 +616,8 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace if (mask & QUIC_EV_CONN_SPPKTS) { const struct quic_tx_packet *pkt = a2; - chunk_appendf(&trace_buf, " cwnd=%llu ppif=%llu pif=%llu", + chunk_appendf(&trace_buf, " pto_count=%d cwnd=%llu ppif=%llu pif=%llu", + qc->path->loss.pto_count, (unsigned long long)qc->path->cwnd, (unsigned long long)qc->path->prep_in_flight, (unsigned long long)qc->path->in_flight);