MINOR: quic: Add traces about sent or resent TX frames

Very useful to help in debugging issues, especially during retransmissions.

Should be backported to 2.6
This commit is contained in:
Frédéric Lécaille 2022-09-02 22:16:10 +02:00
parent 70a6e637b4
commit 449804e27d

View file

@ -608,6 +608,7 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
(unsigned long long)qc->path->prep_in_flight,
(unsigned long long)qc->path->in_flight);
if (pkt) {
const struct quic_frame *frm;
chunk_appendf(&trace_buf, " pn=%lu(%s) iflen=%llu",
(unsigned long)pkt->pn_node.key,
pkt->pktns == &qc->pktns[QUIC_TLS_PKTNS_INITIAL] ? "I" :
@ -616,6 +617,10 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace
chunk_appendf(&trace_buf, " rx.bytes=%llu tx.bytes=%llu",
(unsigned long long)qc->rx.bytes,
(unsigned long long)qc->tx.bytes);
list_for_each_entry(frm, &pkt->frms, list) {
chunk_appendf(&trace_buf, " frm@%p", frm);
chunk_frm_appendf(&trace_buf, frm);
}
}
}