]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add the number of TX bytes to traces
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 17 Jan 2022 09:51:43 +0000 (10:51 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Jan 2022 15:43:06 +0000 (16:43 +0100)
This should be helpful to diagnose some issues regarding packet loss
and recovery issues.

src/xprt_quic.c

index f9d61e29df17f4f008c1192eb9c644ca149cb6bf..61ba70dc0ed1944db16537d66056257591fb178e 100644 (file)
@@ -305,7 +305,9 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
                                        chunk_appendf(&trace_buf, " pn=%llu",(ull)pkt->pn_node.key);
                                list_for_each_entry(frm, &pkt->frms, list)
                                        chunk_frm_appendf(&trace_buf, frm);
-                               chunk_appendf(&trace_buf, " tx.bytes=%llu", (unsigned long long)qc->tx.bytes);
+                               chunk_appendf(&trace_buf, " rx.bytes=%llu tx.bytes=%llu",
+                                             (unsigned long long)qc->rx.bytes,
+                                             (unsigned long long)qc->tx.bytes);
                        }
 
                        if (room) {