From: Remi Gacogne Date: Thu, 1 Feb 2024 08:15:50 +0000 (+0100) Subject: dnsdist: Fix typos in the AF_XDP documentation X-Git-Tag: dnsdist-1.9.0~8^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f817fdfe1f6f93bda623b569684201d5f93dea7;p=thirdparty%2Fpdns.git dnsdist: Fix typos in the AF_XDP documentation Reported by Chris Hofstaedtler (thanks!). --- diff --git a/pdns/dnsdistdist/docs/advanced/xsk.rst b/pdns/dnsdistdist/docs/advanced/xsk.rst index 3badb7d6fd..54cdc25b67 100644 --- a/pdns/dnsdistdist/docs/advanced/xsk.rst +++ b/pdns/dnsdistdist/docs/advanced/xsk.rst @@ -10,7 +10,7 @@ Since 1.9.0, :program:`dnsdist` can use `AF_XDP `_ can be found in the ``contrib`` directory of the PowerDNS Git repository:: +In addition to these, an ``eBPF`` ``XDP`` program needs to be loaded to decide which packets to distribute via the ``AF_XDP`` socket (and to which, as there are usually more than one). This program uses a ``BPF`` map of type ``XSKMAP`` (located at ``/sys/fs/bpf/dnsdist/xskmap`` by default) that is populated by :program:`dnsdist` at startup to locate the ``AF_XDP`` socket to use. :program:`dnsdist` also sets up two additional ``BPF`` maps (located at ``/sys/fs/bpf/dnsdist/xsk-destinations-v4`` and ``/sys/fs/bpf/dnsdist/xsk-destinations-v6``) to let the ``XDP`` program know which IP destinations are to be routed to the ``AF_XDP`` sockets and which are to be passed to the regular network stack (health-checks queries and responses, for example). A ready-to-use `XDP program `_ can be found in the ``contrib`` directory of the PowerDNS Git repository:: $ python xdp.py --xsk --interface eth0 @@ -22,7 +22,7 @@ Then :program:`dnsdist` needs to be configured to use ``AF_XDP``, first by creat This ties the new object to the first receive queue on ``enp1s0``, allocating 65536 frames and populating the map located at ``/sys/fs/bpf/dnsdist/xskmap``. -Then we can tell :program:`dnsdist` to listen for ``AF_XDP`` packets to ``108.61.103.88:53``, in addition to packets coming via the regular network stack: +Then we can tell :program:`dnsdist` to listen for ``AF_XDP`` packets to ``192.0.2.1:53``, in addition to packets coming via the regular network stack: .. code-block:: lua