]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Reuse the vector of packets between XSK recv rounds 16511/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Nov 2025 13:48:30 +0000 (14:48 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Nov 2025 13:48:30 +0000 (14:48 +0100)
commiteb11575149358dbee7af95a9fa686e4c20d21a30
tree127051a244058334f19030c9d89e7a5ea1cd7188
parente9b88b8064dd37d30d896f8d9d7ebbecbaa7e3f7
dnsdist: Reuse the vector of packets between XSK recv rounds

The existing code was allocating a new vector for every call
to `XskSocket::recv()` which was just silly.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-xsk.cc
pdns/dnsdistdist/xsk.cc
pdns/dnsdistdist/xsk.hh