]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: make bbr consider the max window size setting
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 Nov 2024 06:37:58 +0000 (07:37 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 Nov 2024 07:00:58 +0000 (08:00 +0100)
Limit the BBR congestion control window size as this is done for all the others
congestion control algorithms with tune.quic.frontend.default-max-window-size
or as first argument passed to "bbr" option for "quic-cc-algo".

src/quic_cc_bbr.c

index 675de2238fa46162fe4004428475592bb79cf201..8f6e039e29dfa294b23036624a083b47c7041de1 100644 (file)
@@ -559,6 +559,8 @@ static void bbr_set_cwnd(struct bbr *bbr, struct quic_cc_path *p, uint32_t acked
        p->cwnd = MAX(p->cwnd, bbr_min_pipe_cwnd(p));
        bbr_bound_cwnd_for_probe_rtt(bbr, p);
        bbr_bound_cwnd_for_model(bbr, p);
+       /* Limitation by configuration (not in BBR RFC). */
+       p->cwnd = MIN(p->cwnd, p->max_cwnd);
 }
 
 static int bbr_init(struct quic_cc *cc)