MINOR: quic: Update K CUBIC calculation (RFC 9438)
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 12 Feb 2024 10:37:17 +0000 (11:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 15:39:46 +0000 (16:39 +0100)
commit859f3634b709293aa4d2972d0fb022e152140181
tree227e9fadab605036bda736711fc4c1715930ef97
parenta09215644988b4131d5a84af95edad388da9e6f3
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.

(cherry picked from commit 2ed53ae4a02ba49f529addb9003b747c8ab281b1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_cc_cubic.c