]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
21 months agoauth: Remove trailing tab in builder-support/specs/pdns.spec 13772/head
Remi Gacogne [Mon, 22 Apr 2024 09:19:17 +0000 (11:19 +0200)] 
auth: Remove trailing tab in builder-support/specs/pdns.spec

23 months agoChange home directory to /var/lib/pdns
Morten Stevens [Thu, 8 Feb 2024 15:02:40 +0000 (16:02 +0100)] 
Change home directory to /var/lib/pdns

Check: https://bugzilla.redhat.com/show_bug.cgi?id=2262487

23 months agoMerge pull request #13756 from rgacogne/ddist-xsk-doc-typos
Remi Gacogne [Thu, 8 Feb 2024 14:36:55 +0000 (15:36 +0100)] 
Merge pull request #13756 from rgacogne/ddist-xsk-doc-typos

dnsdist: Fix typos in the AF_XDP documentation

23 months agoMerge pull request #13768 from rgacogne/ddist-maintenance-hook
Remi Gacogne [Thu, 8 Feb 2024 14:31:55 +0000 (15:31 +0100)] 
Merge pull request #13768 from rgacogne/ddist-maintenance-hook

dnsdist: Add a Lua maintenance hook

23 months agoMerge pull request #13757 from rgacogne/ddist-coverty-warning-20240201
Remi Gacogne [Thu, 8 Feb 2024 14:31:09 +0000 (15:31 +0100)] 
Merge pull request #13757 from rgacogne/ddist-coverty-warning-20240201

dnsdist: Fix a warning reported by Coverity

23 months agodnsdist: Apply suggestions from code review, delint 13768/head
Remi Gacogne [Thu, 8 Feb 2024 09:43:56 +0000 (10:43 +0100)] 
dnsdist: Apply suggestions from code review, delint

23 months agoMerge pull request #13755 from rgacogne/ddist-quic-unsupported-version
Remi Gacogne [Thu, 8 Feb 2024 08:01:06 +0000 (09:01 +0100)] 
Merge pull request #13755 from rgacogne/ddist-quic-unsupported-version

dnsdist: Better handling of short, non-initial QUIC headers

23 months agodnsdist: Clear the Lua maintenance callbacks before exiting
Remi Gacogne [Tue, 6 Feb 2024 15:22:49 +0000 (16:22 +0100)] 
dnsdist: Clear the Lua maintenance callbacks before exiting

23 months agoMerge pull request #13761 from rgacogne/ddist-test-ebpf
Remi Gacogne [Tue, 6 Feb 2024 15:20:17 +0000 (16:20 +0100)] 
Merge pull request #13761 from rgacogne/ddist-test-ebpf

dnsdist: Add regression tests for eBPF blocks (static / dynamic)

23 months agoMerge pull request #12359 from Habbie/auth-lua-dblookup
Peter van Dijk [Tue, 6 Feb 2024 15:15:40 +0000 (16:15 +0100)] 
Merge pull request #12359 from Habbie/auth-lua-dblookup

auth LUA: add dblookup function

23 months agodnsdist: Add a Lua maintenance hook
Remi Gacogne [Tue, 6 Feb 2024 14:44:35 +0000 (15:44 +0100)] 
dnsdist: Add a Lua maintenance hook

Having a hook that can accept multiple callbacks makes it a lot easier
to manage the execution of several, independant tasks that needs to be
called regularly.

23 months agocode review from otto, thanks 12359/head
Peter van Dijk [Tue, 6 Feb 2024 11:08:30 +0000 (12:08 +0100)] 
code review from otto, thanks

23 months agoMerge pull request #13743 from Habbie/auth-api-priority-error
Peter van Dijk [Tue, 6 Feb 2024 10:24:43 +0000 (11:24 +0100)] 
Merge pull request #13743 from Habbie/auth-api-priority-error

auth API: reject priority element in record, closes #12657

23 months agodnsdist: Preserve 'LLVM_PROFILE_FILE' in sudo-enabled regression tests 13761/head
Remi Gacogne [Mon, 5 Feb 2024 08:41:18 +0000 (09:41 +0100)] 
dnsdist: Preserve 'LLVM_PROFILE_FILE' in sudo-enabled regression tests

23 months agodnsdist: Reduce the timeout on Dynamic Block tests expected to fail
Remi Gacogne [Thu, 1 Feb 2024 13:46:11 +0000 (14:46 +0100)] 
dnsdist: Reduce the timeout on Dynamic Block tests expected to fail

23 months agodnsdist: Enable eBPF regression tests in our CI
Remi Gacogne [Thu, 1 Feb 2024 13:45:40 +0000 (14:45 +0100)] 
dnsdist: Enable eBPF regression tests in our CI

23 months agodnsdist: Add regression tests for eBPF blocks (static / dynamic)
Remi Gacogne [Thu, 1 Feb 2024 13:44:45 +0000 (14:44 +0100)] 
dnsdist: Add regression tests for eBPF blocks (static / dynamic)

2 years agoMerge pull request #13764 from romeroalx/fix-build-ubuntu-noble
romeroalx [Fri, 2 Feb 2024 10:43:18 +0000 (11:43 +0100)] 
Merge pull request #13764 from romeroalx/fix-build-ubuntu-noble

GH Actions: fix builds for ubuntu noble. Remove pkg usrmerge

2 years agofix builds ubuntu noble. remove pkg usrmerge 13764/head
romeroalx [Thu, 1 Feb 2024 23:35:28 +0000 (00:35 +0100)] 
fix builds ubuntu noble. remove pkg usrmerge

2 years agodnsdist: Fix a warning reported by Coverity 13757/head
Remi Gacogne [Thu, 1 Feb 2024 09:00:19 +0000 (10:00 +0100)] 
dnsdist: Fix a warning reported by Coverity

CID 414570 and CID 414569 (Uninitialized variables) are false
positives as far as I can tell, the variables are properly set
by the call to `bpf_get_next_key`, but let's zero-initialize them
anyway, while delinting the code.

2 years agodnsdist: Better handling of short, non-initial QUIC headers 13755/head
Remi Gacogne [Thu, 1 Feb 2024 08:32:16 +0000 (09:32 +0100)] 
dnsdist: Better handling of short, non-initial QUIC headers

After a QUIC connection has been negotiated, we mostly get short QUIC
headers that do not contain the QUIC version. This is fine as long as
we still know about the connection, which might not be the case if it
has been idle for longer that our timer and thus we forgot about its
connection ID. What happens then is that we will mistakenly think that
the remote peer is trying to establish a new QUIC connection with a
version set to 0, which we don't support, and therefore start the
version negotiation process. What we should instead do is notice that
the packet is not a 'Initial' one and discard it, as we cannot open
a new connection from a short header anyway. Note that the peer knows
about our idle timer so in theory it should not try to reuse such a
connection, but it does happen from time to time.

2 years agodnsdist: Document AF_XDP's limitations 13756/head
Remi Gacogne [Thu, 1 Feb 2024 08:23:26 +0000 (09:23 +0100)] 
dnsdist: Document AF_XDP's limitations

2 years agodnsdist: Fix typos in the AF_XDP documentation
Remi Gacogne [Thu, 1 Feb 2024 08:15:50 +0000 (09:15 +0100)] 
dnsdist: Fix typos in the AF_XDP documentation

Reported by Chris Hofstaedtler (thanks!).

2 years agoMerge pull request #13746 from omoerbeek/rec-resolve-context-tidy
Otto Moerbeek [Wed, 31 Jan 2024 08:33:25 +0000 (09:33 +0100)] 
Merge pull request #13746 from omoerbeek/rec-resolve-context-tidy

rec: tidy ResolveContext class

2 years agoone last lint 13746/head
Otto Moerbeek [Tue, 30 Jan 2024 17:17:22 +0000 (18:17 +0100)] 
one last lint

2 years agoAvoid a cases of `an exception may be thrown in function '' which should not throw...
Otto Moerbeek [Tue, 30 Jan 2024 10:12:34 +0000 (11:12 +0100)] 
Avoid a cases of `an exception may be thrown in function '' which should not throw exceptions (bugprone-exception-escape)`
The use of a DNSName capture by value is the culprit. Avoid those by using
[&]', telling the compiler to figure out the captures by itself but use refs.
This *could* lead to issues if we modify the value in the lambda, so this conversion should be checked!

2 years agoMerge pull request #13740 from rgacogne/ddist-190rc1-changelog-secpoll
Remi Gacogne [Tue, 30 Jan 2024 14:02:45 +0000 (15:02 +0100)] 
Merge pull request #13740 from rgacogne/ddist-190rc1-changelog-secpoll

dnsdist: ChangeLog and secpoll update for 1.9.0-rc1

2 years agoMerge pull request #11652 from Y7n05h/xsk dnsdist-1.9.0-rc1
Remi Gacogne [Tue, 30 Jan 2024 10:56:58 +0000 (11:56 +0100)] 
Merge pull request #11652 from Y7n05h/xsk

dnsdist: add AF_XDP support for UDP

2 years agodnsdist: Apply Charles-Henri's suggestions (thanks!) 11652/head
Remi Gacogne [Tue, 30 Jan 2024 09:58:21 +0000 (10:58 +0100)] 
dnsdist: Apply Charles-Henri's suggestions (thanks!)

2 years agoMerge pull request #13749 from rgacogne/ci-binary-check-exclude-fuzzing-corpus
Remi Gacogne [Tue, 30 Jan 2024 09:38:10 +0000 (10:38 +0100)] 
Merge pull request #13749 from rgacogne/ci-binary-check-exclude-fuzzing-corpus

ci: Exclude the fuzzing/corpus dir from the 'no binary files' check

2 years agodnsdist: The 1.9.0-rc1 release has been moved to the 30th 13740/head
Remi Gacogne [Mon, 29 Jan 2024 13:18:14 +0000 (14:18 +0100)] 
dnsdist: The 1.9.0-rc1 release has been moved to the 30th

2 years agoci: Exclude the fuzzing/corpus dir from the 'no binary files' check 13749/head
Remi Gacogne [Mon, 29 Jan 2024 10:28:08 +0000 (11:28 +0100)] 
ci: Exclude the fuzzing/corpus dir from the 'no binary files' check

2 years agodnsdist: Fix formatting of fuzz_xsk.cc
Remi Gacogne [Mon, 29 Jan 2024 10:15:16 +0000 (11:15 +0100)] 
dnsdist: Fix formatting of fuzz_xsk.cc

2 years agodnsdist: Add a fuzzing target for the XSK code
Remi Gacogne [Mon, 29 Jan 2024 10:12:27 +0000 (11:12 +0100)] 
dnsdist: Add a fuzzing target for the XSK code

2 years agoMerge pull request #13724 from rgacogne/dnsname-parse-packet-optim
Remi Gacogne [Mon, 29 Jan 2024 08:38:40 +0000 (09:38 +0100)] 
Merge pull request #13724 from rgacogne/dnsname-parse-packet-optim

dnsname: Optimize parsing of uncompressed labels

2 years agoMerge pull request #13742 from omoerbeek/rec-update-rust-and-crates
Otto Moerbeek [Fri, 26 Jan 2024 16:42:44 +0000 (17:42 +0100)] 
Merge pull request #13742 from omoerbeek/rec-update-rust-and-crates

rec: update to cargo 1.75 and updated Cargo dependencies

2 years agoMerge pull request #13741 from omoerbeek/rec-coverity-20240124
Otto Moerbeek [Fri, 26 Jan 2024 16:42:11 +0000 (17:42 +0100)] 
Merge pull request #13741 from omoerbeek/rec-coverity-20240124

rec: fix Coverity issues in new RPZ code

2 years agoMerge pull request #13747 from jacobbunk/document-dnsnameset
Remi Gacogne [Fri, 26 Jan 2024 15:43:26 +0000 (16:43 +0100)] 
Merge pull request #13747 from jacobbunk/document-dnsnameset

Link to existing documentation for DNSNameSet.

2 years agoLink to existing documentation for DNSNameSet. 13747/head
Jacob Bunk Nielsen [Fri, 26 Jan 2024 15:03:16 +0000 (16:03 +0100)] 
Link to existing documentation for DNSNameSet.

2 years agoFix async callbacks in unit tests now that ResolverContext is no longer an optional
Otto Moerbeek [Fri, 26 Jan 2024 11:27:35 +0000 (12:27 +0100)] 
Fix async callbacks in unit tests now that ResolverContext is no longer an optional

Note that C++ does not really care, as the implicit conversion rules cover
this already.

2 years agoauth API: reject priority element in record, closes #12657 13743/head
Peter van Dijk [Thu, 25 Jan 2024 12:54:22 +0000 (13:54 +0100)] 
auth API: reject priority element in record, closes #12657

2 years agoActually, ResolveContext is not optional
Otto Moerbeek [Fri, 26 Jan 2024 11:07:53 +0000 (12:07 +0100)] 
Actually, ResolveContext is not optional

2 years agoMerge pull request #13745 from omoerbeek/auth-fix-gss-test
Peter van Dijk [Fri, 26 Jan 2024 10:59:03 +0000 (11:59 +0100)] 
Merge pull request #13745 from omoerbeek/auth-fix-gss-test

auth: fix gss regression test

2 years agorec: tidy ResolveContext
Otto Moerbeek [Fri, 26 Jan 2024 10:46:05 +0000 (11:46 +0100)] 
rec: tidy ResolveContext

Plus some changes to const& for ResolveContext arguments

2 years agodnsname: Use `static_cast` instead of C-style casts 13724/head
Remi Gacogne [Fri, 26 Jan 2024 10:25:48 +0000 (11:25 +0100)] 
dnsname: Use `static_cast` instead of C-style casts

2 years agodnsname: Remove useless resize, we always resize again right after it
Remi Gacogne [Fri, 26 Jan 2024 10:25:08 +0000 (11:25 +0100)] 
dnsname: Remove useless resize, we always resize again right after it

2 years agoMerge pull request #13744 from omoerbeek/rec-tidy-filterpo
Otto Moerbeek [Fri, 26 Jan 2024 09:46:54 +0000 (10:46 +0100)] 
Merge pull request #13744 from omoerbeek/rec-tidy-filterpo

rec: Tidy filterpo.?? (reaching into iputils.hh as well)

2 years agoauth: fix gss regression test 13745/head
Otto Moerbeek [Fri, 26 Jan 2024 09:04:20 +0000 (10:04 +0100)] 
auth: fix gss regression test

Wrong records were tested for non-presence, as noted by @Assumeru

2 years agoTidy filterpo.?? (reaching into iputils.hh as well). 13744/head
Otto Moerbeek [Wed, 24 Jan 2024 16:24:45 +0000 (17:24 +0100)] 
Tidy filterpo.?? (reaching into iputils.hh as well).

2 years agodnsdist: Properly detect whether `bpf_xdp_query` is available
Remi Gacogne [Thu, 25 Jan 2024 11:32:09 +0000 (12:32 +0100)] 
dnsdist: Properly detect whether `bpf_xdp_query` is available

It was added in libbpf 0.7 and EL8 only has 0.5, sadly.

2 years agoMerge pull request #13738 from Habbie/auth-49-debian-configs
Peter van Dijk [Thu, 25 Jan 2024 11:02:14 +0000 (12:02 +0100)] 
Merge pull request #13738 from Habbie/auth-49-debian-configs

auth debian: adjust option names in shipped configs

2 years agoMerge pull request #13736 from rgacogne/ddist-quiche-0.20
Remi Gacogne [Wed, 24 Jan 2024 15:09:07 +0000 (16:09 +0100)] 
Merge pull request #13736 from rgacogne/ddist-quiche-0.20

dnsdist: Update Quiche to 0.20.0

2 years agorec: update to cargo 1.75 and updated Cargo dependencies 13742/head
Otto Moerbeek [Wed, 24 Jan 2024 14:19:06 +0000 (15:19 +0100)] 
rec: update to cargo 1.75 and updated Cargo dependencies

2 years agorec: fix Coverity issues in new RPZ code 13741/head
Otto Moerbeek [Wed, 24 Jan 2024 09:04:49 +0000 (10:04 +0100)] 
rec: fix Coverity issues in new RPZ code

Coverity issues 1533681..1533686, all low impact perf related

2 years agoMerge pull request #13504 from omoerbeek/rec-set-aggr-nsec-size
Otto Moerbeek [Wed, 24 Jan 2024 06:53:03 +0000 (07:53 +0100)] 
Merge pull request #13504 from omoerbeek/rec-set-aggr-nsec-size

rec: introduce command to set aggressive NSEC cache size

2 years agoMerge pull request #13737 from omoerbeek/rec-fix-yamlconv-test
Otto Moerbeek [Tue, 23 Jan 2024 15:47:41 +0000 (16:47 +0100)] 
Merge pull request #13737 from omoerbeek/rec-fix-yamlconv-test

rec: fix YAML conversion test

2 years agodnsdist: ChangeLog and secpoll update for 1.9.0-rc1
Remi Gacogne [Tue, 23 Jan 2024 15:45:01 +0000 (16:45 +0100)] 
dnsdist: ChangeLog and secpoll update for 1.9.0-rc1

2 years agoMerge pull request #13110 from sndrsmnk/logfix
Peter van Dijk [Tue, 23 Jan 2024 14:09:27 +0000 (15:09 +0100)] 
Merge pull request #13110 from sndrsmnk/logfix

Log port with all freshness check failure scenarios.

2 years agospell-check: Allow libxdp
Remi Gacogne [Tue, 23 Jan 2024 13:57:55 +0000 (14:57 +0100)] 
spell-check: Allow libxdp

2 years agodnsdist: Update the XSK documentation for recent changes
Remi Gacogne [Tue, 23 Jan 2024 13:54:29 +0000 (14:54 +0100)] 
dnsdist: Update the XSK documentation for recent changes

2 years agoauth debian: adjust option names in shipped configs 13738/head
Peter van Dijk [Tue, 23 Jan 2024 12:58:09 +0000 (13:58 +0100)] 
auth debian: adjust option names in shipped configs

fixes #13708

2 years agorec: fix YAML conversion test 13737/head
Otto Moerbeek [Tue, 23 Jan 2024 12:48:20 +0000 (13:48 +0100)] 
rec: fix YAML conversion test

This test has race condition and after #13728, an output line can
occur multilpe times in the output. So filter those.

2 years agoauth LUA: new dblookup() function
Peter van Dijk [Fri, 23 Dec 2022 11:07:47 +0000 (12:07 +0100)] 
auth LUA: new dblookup() function

2 years agoMerge pull request #13733 from fredmorcos/ci-verbose-logging
Fred Morcos [Tue, 23 Jan 2024 12:30:30 +0000 (13:30 +0100)] 
Merge pull request #13733 from fredmorcos/ci-verbose-logging

CI: Enable verbose logging to catch errors within logging macros

2 years agodnsdist: Fix more clang-tidy warnings
Remi Gacogne [Tue, 23 Jan 2024 12:03:35 +0000 (13:03 +0100)] 
dnsdist: Fix more clang-tidy warnings

2 years agodnsdist: Implement proper parameters handling in the XDP helper
Remi Gacogne [Tue, 23 Jan 2024 11:53:36 +0000 (12:53 +0100)] 
dnsdist: Implement proper parameters handling in the XDP helper

2 years agodnsdist: Fix warnings from clang-tidy
Remi Gacogne [Tue, 23 Jan 2024 11:01:02 +0000 (12:01 +0100)] 
dnsdist: Fix warnings from clang-tidy

2 years agodnsdist: Relax file descriptor check for XSK-enabled backends
Remi Gacogne [Tue, 23 Jan 2024 10:03:50 +0000 (11:03 +0100)] 
dnsdist: Relax file descriptor check for XSK-enabled backends

We cannot guarantee that the response will be coming via XSK, so
we need to accept that a response that does not come from the
expected socket descriptor.

2 years agodnsdist: Switch to Debian 12 for our Docker image, enable XSK
Remi Gacogne [Tue, 23 Jan 2024 09:09:30 +0000 (10:09 +0100)] 
dnsdist: Switch to Debian 12 for our Docker image, enable XSK

2 years agodnsdist: Hopefully fix building with/without XDP in CI
Remi Gacogne [Mon, 22 Jan 2024 16:04:44 +0000 (17:04 +0100)] 
dnsdist: Hopefully fix building with/without XDP in CI

2 years agodnsdist: Enable XSK (AF_XDP) on supported OSes
Remi Gacogne [Mon, 22 Jan 2024 15:49:53 +0000 (16:49 +0100)] 
dnsdist: Enable XSK (AF_XDP) on supported OSes

2 years agodnsdist: Clear the XSK responder notification queue right away
Remi Gacogne [Mon, 22 Jan 2024 11:28:25 +0000 (12:28 +0100)] 
dnsdist: Clear the XSK responder notification queue right away

Otherwise we might discard a valid notification between our last
look at the queue and the clearing.

2 years agodnsdist: Properly delay response packets in incoming-only XSK mode
Remi Gacogne [Mon, 22 Jan 2024 11:28:09 +0000 (12:28 +0100)] 
dnsdist: Properly delay response packets in incoming-only XSK mode

2 years agodnsdist: Refactor XSK support between dnsdist and the backends
Remi Gacogne [Fri, 19 Jan 2024 16:22:57 +0000 (17:22 +0100)] 
dnsdist: Refactor XSK support between dnsdist and the backends

2 years agodnsdist: Cosmetic fixes for XSK
Remi Gacogne [Fri, 19 Jan 2024 14:40:28 +0000 (15:40 +0100)] 
dnsdist: Cosmetic fixes for XSK

2 years agodnsdist: Log whether we are using XSK, and which mode (native or emulated)
Remi Gacogne [Fri, 19 Jan 2024 08:53:48 +0000 (09:53 +0100)] 
dnsdist: Log whether we are using XSK, and which mode (native or emulated)

2 years agodnsdist: Fix XSK over IPv6
Remi Gacogne [Fri, 19 Jan 2024 08:14:38 +0000 (09:14 +0100)] 
dnsdist: Fix XSK over IPv6

2 years agodnsdist: Log whether UDP queries are forwarded via XSK
Remi Gacogne [Fri, 19 Jan 2024 08:10:44 +0000 (09:10 +0100)] 
dnsdist: Log whether UDP queries are forwarded via XSK

2 years agodnsdist: Install libbpf and libxdp in our CI image
Remi Gacogne [Tue, 16 Jan 2024 10:42:45 +0000 (11:42 +0100)] 
dnsdist: Install libbpf and libxdp in our CI image

2 years agodnsdist: Add default values for the map and number of frames in `newXsk`
Remi Gacogne [Tue, 16 Jan 2024 10:34:21 +0000 (11:34 +0100)] 
dnsdist: Add default values for the map and number of frames in `newXsk`

2 years agodnsdist: Fix a clang-tidy warning
Remi Gacogne [Mon, 15 Jan 2024 16:02:38 +0000 (17:02 +0100)] 
dnsdist: Fix a clang-tidy warning

2 years agodnsdist: We need the regular, non-XSK threads as well!
Remi Gacogne [Mon, 15 Jan 2024 16:01:59 +0000 (17:01 +0100)] 
dnsdist: We need the regular, non-XSK threads as well!

2 years agodnsdist: Fix XSK/AF_XDP detection
Remi Gacogne [Mon, 15 Jan 2024 16:01:26 +0000 (17:01 +0100)] 
dnsdist: Fix XSK/AF_XDP detection

2 years agodnsdist: Add xsk, xskmap and umem to the spellchecker allow-list
Remi Gacogne [Mon, 15 Jan 2024 16:07:45 +0000 (17:07 +0100)] 
dnsdist: Add xsk, xskmap and umem to the spellchecker allow-list

2 years agodnsdist: Document the XSK feature
Remi Gacogne [Mon, 15 Jan 2024 15:50:45 +0000 (16:50 +0100)] 
dnsdist: Document the XSK feature

2 years agodnsdist: Report the `AF_XDP` feature
Remi Gacogne [Mon, 15 Jan 2024 15:09:52 +0000 (16:09 +0100)] 
dnsdist: Report the `AF_XDP` feature

2 years agoxdp.py: The ports set is now unused in XSK mode
Remi Gacogne [Mon, 15 Jan 2024 15:09:22 +0000 (16:09 +0100)] 
xdp.py: The ports set is now unused in XSK mode

2 years agodnsdist: Revert the now unneeded changes made to dnsdist-healthchecks
Remi Gacogne [Mon, 15 Jan 2024 15:08:51 +0000 (16:08 +0100)] 
dnsdist: Revert the now unneeded changes made to dnsdist-healthchecks

2 years agodnsdist: Format and delint the XSK code
Remi Gacogne [Mon, 15 Jan 2024 14:44:31 +0000 (15:44 +0100)] 
dnsdist: Format and delint the XSK code

2 years agodnsdist: Clean up and reorganize XSK code
Remi Gacogne [Mon, 15 Jan 2024 14:14:29 +0000 (15:14 +0100)] 
dnsdist: Clean up and reorganize XSK code

2 years agodnsdist: Fix XSK between dnsdist and its backends
Remi Gacogne [Thu, 11 Jan 2024 15:24:38 +0000 (16:24 +0100)] 
dnsdist: Fix XSK between dnsdist and its backends

2 years agodnsdist: Get rid of memory allocations in the XSK hot path
Remi Gacogne [Thu, 28 Dec 2023 15:20:40 +0000 (16:20 +0100)] 
dnsdist: Get rid of memory allocations in the XSK hot path

2 years agodnsdist: Refactor the XSK code into a proper namespace
Remi Gacogne [Thu, 28 Dec 2023 14:18:44 +0000 (15:18 +0100)] 
dnsdist: Refactor the XSK code into a proper namespace

2 years agodnsdist: Cleanup of the XSK code, fixing alignment issues
Remi Gacogne [Thu, 28 Dec 2023 10:53:49 +0000 (11:53 +0100)] 
dnsdist: Cleanup of the XSK code, fixing alignment issues

Also add UMEM checks for debugging.

2 years agodnsdist: Fix a UMEM corruption in XSK
Remi Gacogne [Thu, 28 Dec 2023 10:51:04 +0000 (11:51 +0100)] 
dnsdist: Fix a UMEM corruption in XSK

The second parameter to `xsk_ring_prod__submit` is the number of
processed items, not the final index.

2 years agodnsdist: Minor clean ups in the XSK code
Remi Gacogne [Tue, 26 Sep 2023 10:35:50 +0000 (12:35 +0200)] 
dnsdist: Minor clean ups in the XSK code

2 years agodnsdist: Fix AF_XDP (XSK) detection
Remi Gacogne [Tue, 26 Sep 2023 10:35:09 +0000 (12:35 +0200)] 
dnsdist: Fix AF_XDP (XSK) detection

2 years agodnsdist: Better detection of libbpf and libxdp
Remi Gacogne [Tue, 19 Sep 2023 14:45:46 +0000 (16:45 +0200)] 
dnsdist: Better detection of libbpf and libxdp

2 years agodnsdist: Small cleanup of the XSK code
Remi Gacogne [Mon, 18 Sep 2023 12:22:07 +0000 (14:22 +0200)] 
dnsdist: Small cleanup of the XSK code

2 years agodnsdist: Fall-back to non-XSK for too large responses
Remi Gacogne [Fri, 3 Mar 2023 13:04:16 +0000 (14:04 +0100)] 
dnsdist: Fall-back to non-XSK for too large responses