MINOR: quic: quic_cc modifications to support BBR
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 22 Oct 2024 17:00:25 +0000 (19:00 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 20 Nov 2024 16:34:22 +0000 (17:34 +0100)
commitaf75665cb7cd30505ed4aa59d2113a3a69543cd1
tree067cc80949b2d59e1b800fa8c7a705ed89266bfe
parentd04adf44dc4f524a02cd74188704cad05d65a98a
MINOR: quic: quic_cc modifications to support BBR

Add several callbacks to quic_cc_algo struct which are only called by BBR.
->get_drs() may be used to retrieve the delivery rate sampling information
from an congestion algorithm struct (quic_cc).
->on_transmit() must be called before sending any packet a QUIC sender.
->on_ack_rcvd() must be called after having received an ACK.
->on_pkt_lost() must be called after having detected a packet loss.
->congestion_event() must be called after any congestion event detection
Modify quic_cc.c to call ->event only if defined. This is not the case
for BBR.
include/haproxy/quic_cc-t.h
src/quic_cc.c