]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: TX part modifications to support BBR.
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 22 Oct 2024 17:03:52 +0000 (19:03 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 20 Nov 2024 16:34:22 +0000 (17:34 +0100)
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

index 26670a4ca3f6f3f23a150c2b4935755dffaabda6..e9dcfd545ccf05c39c6d008cd1fa129fee1036f9 100644 (file)
@@ -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)) {