From: Frédéric Lécaille Date: Thu, 21 Jul 2022 12:24:41 +0000 (+0200) Subject: MINOR: quic: Stop looking for packet loss asap X-Git-Tag: v2.7-dev3~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc591cd6cb8cf5c0e07f720858a1f9ea62be844e;p=thirdparty%2Fhaproxy.git MINOR: quic: Stop looking for packet loss asap As the TX packets are ordered by their packet number and always sent in the same order. their TX timestamps are inspected from the older to the newer values when we look for the packet loss. So we can stop this search as soon as we found the first packet which has not been lost. Must be backported to 2.6 --- diff --git a/src/quic_loss.c b/src/quic_loss.c index 7cce3a4788..2ee3efb804 100644 --- a/src/quic_loss.c +++ b/src/quic_loss.c @@ -184,6 +184,7 @@ void qc_packet_loss_lookup(struct quic_pktns *pktns, struct quic_conn *qc, pktns->tx.loss_time = tick_first(pktns->tx.loss_time, loss_time_limit); else pktns->tx.loss_time = loss_time_limit; + break; } }