MINOR: quic: Dump more information at proto level when building packets
This should be helpful to debug issues at without too much traces.
Must be backported to 2.7 and 2.6.
diff --git a/src/quic_conn.c b/src/quic_conn.c
index 1a9edc6..0cce20b 100644
--- a/src/quic_conn.c
+++ b/src/quic_conn.c
@@ -3433,7 +3433,7 @@
while (b_contig_space(buf) >= (int)qc->path->mtu + dg_headlen) {
int err, probe, cc;
- TRACE_POINT(QUIC_EV_CONN_PHPKTS, qc, qel);
+ TRACE_PROTO("TX prep app pkts", QUIC_EV_CONN_PHPKTS, qc, qel);
probe = 0;
cc = qc->flags & QUIC_FL_CONN_IMMEDIATE_CLOSE;
/* We do not probe if an immediate close was asked */
@@ -3463,7 +3463,7 @@
* MTU, we are here because of the congestion control window. There is
* no need to try to reuse this buffer.
*/
- TRACE_DEVEL("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc);
+ TRACE_PROTO("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc, qel);
goto out;
default:
break;
@@ -3538,7 +3538,7 @@
(qel == &qc->els[QUIC_TLS_ENC_LEVEL_INITIAL] ||
qel == &qc->els[QUIC_TLS_ENC_LEVEL_HANDSHAKE]);
- TRACE_PROTO("TX prep pks", QUIC_EV_CONN_PHPKTS, qc, qel);
+ TRACE_PROTO("TX prep pkts", QUIC_EV_CONN_PHPKTS, qc, qel);
probe = 0;
cc = qc->flags & QUIC_FL_CONN_IMMEDIATE_CLOSE;
/* We do not probe if an immediate close was asked */
@@ -3619,7 +3619,7 @@
*/
if (prv_pkt)
qc_txb_store(buf, dglen, first_pkt);
- TRACE_DEVEL("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc);
+ TRACE_PROTO("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc, qel);
goto out;
default:
break;