MINOR: quic: Add information to "show quic" for CUBIC cc.
authorFrederic Lecaille <flecaille@haproxy.com>
Fri, 26 Jul 2024 14:06:27 +0000 (16:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jul 2024 09:56:13 +0000 (11:56 +0200)
commit70f6d9986efc40eb1f80caab15832d05fd7b18ca
treee54f88a68b58d007e802aa02893fae94f029ebdb
parent31ba0d2abe450f3b688f3e22eb6ca0417b1c17e5
MINOR: quic: Add information to "show quic" for CUBIC cc.

Add ->state_cli() new callback to quic_cc_algo struct to define a
function called by the "show quic (cc|full)" commands to dump some information
about the congestion algorithm internal state currently in use by the QUIC
connections.

Implement this callback for CUBIC algorithm to dump its internal variables:
   - K: (the time to reach the cubic curve inflexion point),
   - last_w_max: the last maximum window value reached before intering
     the last recovery period. This is also the window value at the
     inflexion point of the cubic curve,
   - wdiff: the difference between the current window value and last_w_max.
     So negative before the inflexion point, and positive after.

(cherry picked from commit 76ff8afa2d9eb0206bc72f4e2f8ad230720dfb94)
[wt: adjusted ctx in quic_cli since no GSO]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/quic_cc-t.h
src/quic_cc_cubic.c
src/quic_cli.c