]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: define new functions for frame alloc
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 27 Jan 2023 16:47:49 +0000 (17:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 3 Feb 2023 09:44:26 +0000 (10:44 +0100)
commit40c24f1a1005a2f0a812a2ec73561e5fd16a5a79
tree5d8b38cc1a5a6bb35ce6e6210f6b5df16fc66cb3
parent1dac018d9fcae67bf750c359dcf6567e68f3d037
MINOR: quic: define new functions for frame alloc

Define two utility functions for quic_frame allocation :
* qc_frm_alloc() is used to allocate a new frame
* qc_frm_dup() is used to allocate a new frame by duplicating an
  existing one

Theses functions are useful to centralize quic_frame initialization.
Note that pool_zalloc() is replaced by a proper pool_alloc() + explicit
initialization code.

This commit will simplify implementation of the per frame retransmission
limitation. Indeed, a new counter will be added in quic_frame structure
which must be initialized to 0.

This should be backported up to 2.7.
include/haproxy/quic_conn.h
include/haproxy/quic_frame-t.h
include/haproxy/quic_frame.h
src/mux_quic.c
src/quic_conn.c
src/quic_frame.c