]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: quic: remove quic_cid_trees reference from proto_quic
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jun 2024 16:50:18 +0000 (18:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Jul 2024 13:02:40 +0000 (15:02 +0200)
commit8550549cca25922a130fbaf89270cb40c788f0d7
treeb919acac8d0aecafc099585cdd269248aa7ee767
parent0a352ef08e6b9c2cd1454c4930ab4bbbf7df874f
REORG: quic: remove quic_cid_trees reference from proto_quic

Previous commit removed access/manipulation to QUIC CID global tree
outside of quic_cid module. This ensures that proper locking is always
performed.

This commit finalizes this cleanup by marking CID global tree as static
only to quic_cid source file. Initialization of this tree is removed
from proto_quic and now performed using dedicated initcalls
quic_alloc_global_cid_tree().

As a side change, complete CID global tree documentation, in particular
to explain CID global tree artificial splitting and ODCID handling.
Overall, the code is now clearer and safer.
include/haproxy/proto_quic.h
include/haproxy/quic_cid-t.h
include/haproxy/quic_cid.h
src/proto_quic.c
src/quic_cid.c