]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add traces to qc_kill_conn()
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 10 Feb 2023 13:44:51 +0000 (14:44 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Feb 2023 16:36:30 +0000 (17:36 +0100)
Very minor modification to help in debugging issues.

Must be backported to 2.7.

include/haproxy/quic_conn-t.h
src/quic_conn.c

index cbf3f686aacc3abf81931d7492d88e5ac6565e9d..79f806e06c64aa566d347fcb9cd8b5c107709206 100644 (file)
@@ -224,6 +224,7 @@ enum quic_pkt_type {
 #define           QUIC_EV_CONN_SUB       (1ULL << 46)
 #define           QUIC_EV_CONN_ELEVELSEL (1ULL << 47)
 #define           QUIC_EV_CONN_RCV       (1ULL << 48)
+#define           QUIC_EV_CONN_KILL      (1ULL << 49)
 
 /* Similar to kernel min()/max() definitions. */
 #define QUIC_MIN(a, b) ({ \
index 5b9d5a327561a6f21142435e7de12f854144fe01..0de12f3543bdc8e76cc19b87b79e8d5df8a1a691 100644 (file)
@@ -738,8 +738,10 @@ static inline int quic_peer_validated_addr(struct quic_conn *qc)
 /* To be called to kill a connection as soon as possible (without sending any packet). */
 void qc_kill_conn(struct quic_conn *qc)
 {
+       TRACE_ENTER(QUIC_EV_CONN_KILL, qc);
        qc->flags |= QUIC_FL_CONN_TO_KILL;
        task_wakeup(qc->idle_timer_task, TASK_WOKEN_OTHER);
+       TRACE_LEAVE(QUIC_EV_CONN_KILL, qc);
 }
 
 /* Set the timer attached to the QUIC connection with <ctx> as I/O handler and used for