]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: refactor frame deallocation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 Feb 2023 15:12:09 +0000 (16:12 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 3 Feb 2023 10:55:41 +0000 (11:55 +0100)
commit57b3eaa79365a6cc6c951bf44348d313cef785ce
tree3510fc99851ba00fc0ffcda184654d570a7b2771
parent40c24f1a1005a2f0a812a2ec73561e5fd16a5a79
MINOR: quic: refactor frame deallocation

Define a new function qc_frm_free() to handle frame deallocation. New
BUG_ON() statements ensure that the deallocated frame is not referenced
by other frame. To support this, all LIST_DELETE() have been replaced by
LIST_DEL_INIT(). This should enforce that frame deallocation is robust.

As a complement, qc_frm_unref() has been moved into quic_frame module.
It is justified as this is a utility function related to frame
deallocation. It allows to use it in quic_pktns_tx_pkts_release() before
calling qc_frm_free().

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