mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-12 10:06:58 +02:00
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.
18 lines
484 B
C
18 lines
484 B
C
#ifndef _HAPROXY_QUIC_UTILS_T_H
|
|
#define _HAPROXY_QUIC_UTILS_T_H
|
|
|
|
#ifdef USE_QUIC
|
|
|
|
#include <haproxy/api-t.h>
|
|
|
|
/* Counter which can be used to measure data amount accross several buffers. */
|
|
struct bdata_ctr {
|
|
uint64_t tot; /* sum of data present in all underlying buffers */
|
|
uint8_t bcnt; /* current number of allocated underlying buffers */
|
|
uint8_t bmax; /* max number of allocated buffers during stream lifetime */
|
|
};
|
|
|
|
#endif /* USE_QUIC */
|
|
|
|
#endif /* _HAPROXY_QUIC_UTILS_T_H */
|