]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: mux-quic: reorganize flow-control fields
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 4 Jul 2022 13:31:43 +0000 (15:31 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 5 Jul 2022 09:20:02 +0000 (11:20 +0200)
<qcc.cl_bidi_r> is used to implement STREAM ID flow control enforcement.
Move it with all fields related to this operation and separated from MAX
STREAM DATA calcul.

include/haproxy/mux_quic-t.h

index 606f4aaf3d98aee5a23d257e04f520ac7c135612..1772a3847bd1de19bc40eb8f2283ee6d0a77c21e 100644 (file)
@@ -54,9 +54,10 @@ struct qcc {
                struct list frms; /* prepared frames related to flow-control  */
                uint64_t ms_bidi_init; /* max initial sub-ID of bidi stream allowed for the peer */
                uint64_t ms_bidi; /* max sub-ID of bidi stream allowed for the peer */
+               uint64_t cl_bidi_r; /* total count of closed remote bidi stream since last MAX_STREAMS emission */
+
                uint64_t msd_bidi_l; /* initial max-stream-data on local streams */
                uint64_t msd_bidi_r; /* initial max-stream-data on remote streams */
-               uint64_t cl_bidi_r; /* total count of closed remote bidi stream since last MAX_STREAMS emission */
 
                uint64_t md; /* current max-data allowed for the peer */
                uint64_t md_init; /* initial max-data */