MINOR: quic: Add some counters at QUIC connection level
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 24 May 2023 09:10:19 +0000 (11:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 May 2023 14:30:11 +0000 (16:30 +0200)
commitbdd64fd71d4329172e4e7466fb7dfa85331d9796
tree12f187d1e7555ebd22817615fe5026c43aea7b06
parent464281af463f4058d4ef47ef1dbf5e2241eb08b1
MINOR: quic: Add some counters at QUIC connection level

Add some statistical counters to quic_conn struct from quic_counters struct which
are used at listener level to handle them at QUIC connection level. This avoid
calling atomic functions. Furthermore this will be useful soon when a counter will
be added for the total number of packets which have been sent which will be very
often incremented.

Some counters were not added, espcially those which count the number of QUIC errors
by QUIC error types. Indeed such counters would be incremented most of the time
only one time at QUIC connection level.

Implement quic_conn_prx_cntrs_update() which accumulates the QUIC connection level
statistical counters to the listener level statistical counters.

Must be backported to 2.7.
include/haproxy/quic_conn-t.h
src/quic_conn.c
src/quic_loss.c
src/quic_sock.c