]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Update K CUBIC calculation (RFC 9438)
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 12 Feb 2024 10:37:17 +0000 (11:37 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 12 Feb 2024 12:44:42 +0000 (13:44 +0100)
commit2ed53ae4a02ba49f529addb9003b747c8ab281b1
tree655e14495643d0d00b6ed05083cb978cb8f6a59c
parent406c63ba44666deb7f09a36748039aaafa8a7d5d
MINOR: quic: Update K CUBIC calculation (RFC 9438)

The new formula for K CUBIC which arrives with RFC 9438 is as follows:

       K = cubic_root((W_max - cwnd_epoch) / C)

Note that W_max is c->last_w_max, and cwnd_epoch is c->cwnd when entering
quic_cubic_update() just after a congestion event.

Must be backported as far as 2.6.
src/quic_cc_cubic.c