]> git.ipfire.org Git - thirdparty/bind9.git/commit
Split the top level slab header hierarchy and the headers
authorOndřej Surý <ondrej@isc.org>
Tue, 5 Aug 2025 16:05:52 +0000 (18:05 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 18 Aug 2025 10:36:47 +0000 (12:36 +0200)
commitf4d8841f0d8b936763a5f40aea2a2eed3f25ffbd
treef1263a70a9a827d612a1c2a338f3b02f7cbcbe3b
parent2f819526585d8143ef12ee103e1ade33f7d6b2e8
Split the top level slab header hierarchy and the headers

The code that combines the top-level hierarchy (per-typepair) and
individual slab headers (per-version) saves a little bit of memory, but
makes the code convoluted, hard to read and hard to modify.  Change the
top level hierarchy to be of different type with individual slabheaders
"hanging" from the per-typepair dns_slabtop_t structure.

This change makes the future enhancements (changing the top level data
structure for faster lookups; coupling type + sig(type) into single
slabtop) much easier.
lib/dns/include/dns/rdataslab.h
lib/dns/qpcache.c
lib/dns/qpzone.c
lib/dns/rdataslab.c