]> git.kaiwu.me - haproxy.git/commit
CLEANUP: quic: compute the STREAM frame end offset once in qc_stream_frm_is_acked()
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 4 Nov 2026 16:05:24 +0000 (17:05 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 5 Nov 2026 08:58:36 +0000 (09:58 +0100)
commit2e8fbbf87e3f834bb5af9adb44c382ba0f29b606
treece17cc50ef6502984ba2d288069993536bb8890d
parentce79f339cc56e4e7c3885a39b2fdbac9fb77dabe
CLEANUP: quic: compute the STREAM frame end offset once in qc_stream_frm_is_acked()

The end offset of a STREAM frame, frm->offset + frm->len, was recomputed
four times in qc_stream_frm_is_acked(): once in the BUG_ON() and three
times in the offset comparisons. Store it in a local frm_end variable, as
already done for the FIN bit flag.

No functional change, no need to backport.
src/quic_retransmit.c