]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: account Tx data per stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 7 May 2025 15:32:46 +0000 (17:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 13 May 2025 13:41:41 +0000 (15:41 +0200)
commita1dc9070e7abe010c1693de9dea67c127577efb5
tree0c1c5d8eef80e70affcfe357bd6b2736d1fa9f69
parent9a05c1f57490ba3adb378ad8e6e26830425514e7
MINOR: quic: account Tx data per stream

Add accounting at qc_stream_desc level to be able to report the number
of allocated Tx buffers and the sum of their data. This represents data
ready for emission or already emitted and waiting on ACK.

To simplify this accounting, a new counter type bdata_ctr is defined in
quic_utils.h. This regroups both buffers and data counter, plus a
maximum on the buffer value.

These values are now displayed on QCS info used both on logline and
traces, and also on "show quic" output.
include/haproxy/quic_stream-t.h
include/haproxy/quic_utils-t.h [new file with mode: 0644]
include/haproxy/quic_utils.h [new file with mode: 0644]
src/mux_quic.c
src/qmux_trace.c
src/quic_stream.c