]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Increment the "dyn blocked" counter for eBPF blocks as well 13125/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 12:08:56 +0000 (14:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Aug 2023 14:26:30 +0000 (16:26 +0200)
commit8aef1b071bc244a9dfa66e8d7a0d49436119da20
tree7554f55cf1ef19cef752f4800c8c0ba46152e588
parent24735efc3554ec5dd37b61afebff93fef2b3762b
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.

(cherry picked from commit e59686d645ff5d1652f2fdef109fff5d98d70ea2)
pdns/dnsdistdist/dnsdist-dynblocks.cc