MINOR: quic: Add traces to qc_kill_conn()

Very minor modification to help in debugging issues.

Must be backported to 2.7.
This commit is contained in:
Frédéric Lécaille 2023-02-10 14:44:51 +01:00 committed by Amaury Denoyelle
parent a2c62c3141
commit 2f531116ed
2 changed files with 3 additions and 0 deletions

View File

@ -224,6 +224,7 @@ enum quic_pkt_type {
#define QUIC_EV_CONN_SUB (1ULL << 46) #define QUIC_EV_CONN_SUB (1ULL << 46)
#define QUIC_EV_CONN_ELEVELSEL (1ULL << 47) #define QUIC_EV_CONN_ELEVELSEL (1ULL << 47)
#define QUIC_EV_CONN_RCV (1ULL << 48) #define QUIC_EV_CONN_RCV (1ULL << 48)
#define QUIC_EV_CONN_KILL (1ULL << 49)
/* Similar to kernel min()/max() definitions. */ /* Similar to kernel min()/max() definitions. */
#define QUIC_MIN(a, b) ({ \ #define QUIC_MIN(a, b) ({ \

View 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). */ /* To be called to kill a connection as soon as possible (without sending any packet). */
void qc_kill_conn(struct quic_conn *qc) void qc_kill_conn(struct quic_conn *qc)
{ {
TRACE_ENTER(QUIC_EV_CONN_KILL, qc);
qc->flags |= QUIC_FL_CONN_TO_KILL; qc->flags |= QUIC_FL_CONN_TO_KILL;
task_wakeup(qc->idle_timer_task, TASK_WOKEN_OTHER); 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 /* Set the timer attached to the QUIC connection with <ctx> as I/O handler and used for