]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Increment the "dyn blocked" counter for eBPF blocks as well 12911/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 12:08:56 +0000 (14:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 12:08:56 +0000 (14:08 +0200)
commite59686d645ff5d1652f2fdef109fff5d98d70ea2
treec6e83b45cc49d2a8022c03c9684ae98f909e63df
parent27c01b79a7505762cb27e714a30b57835a91b5ae
dnsdist: Increment the "dyn blocked" counter for eBPF blocks as well

Regular, userspace blocks increment the "dyn blocked" counter for every
dropped query. The eBPF blocks are executed in kernelspace and thus do
not increment that counter at all, which makes it challenging for
reporting to do its job. On the other hand we want our eBPF code to
be as efficient as possible since it is used when performance really
matters.
This commit updates the counter when a eBPF dynamic block is removed,
which is a compromise between the performance impact and a slight
reporting delay.
pdns/dnsdistdist/dnsdist-dynblocks.cc