From e778b9a2b6eff222bafe351dd4a44e86e3578d5c Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Tue, 22 Oct 2024 19:03:52 +0200 Subject: [PATCH] MINOR: quic: TX part modifications to support BBR. Very few modifications: call ->on_transmit() and ->drs_on_transmit() congestion control algorithm (quic_cc) callbacks from qc_send_ppkts() just after having sents some packets. --- src/quic_tx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/quic_tx.c b/src/quic_tx.c index 26670a4ca3..e9dcfd545c 100644 --- a/src/quic_tx.c +++ b/src/quic_tx.c @@ -396,6 +396,10 @@ static int qc_send_ppkts(struct buffer *buf, struct ssl_sock_ctx *ctx) qc->path->ifae_pkts++; if (qc->flags & QUIC_FL_CONN_IDLE_TIMER_RESTARTED_AFTER_READ) qc_idle_timer_rearm(qc, 0, 0); + if (cc->algo->on_transmit) + cc->algo->on_transmit(cc); + if (cc->algo->drs_on_transmit) + cc->algo->drs_on_transmit(cc, pkt); } if (!(qc->flags & QUIC_FL_CONN_CLOSING) && (pkt->flags & QUIC_FL_TX_PACKET_CC)) { -- 2.47.3