Skip to content

Commit 34a560c

Browse files
bagasmeKernel Patches Daemon
authored andcommitted
Documentation: bpf: Convert external kernel docs link
Convert links to other docs pages that use external links into internal cross-references. Signed-off-by: Bagas Sanjaya <[email protected]>
1 parent 0dc90cb commit 34a560c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Documentation/bpf/bpf_iterators.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ which often takes time to publish upstream and release. The same is true for pop
123123
tools like `ss <https://man7.org/linux/man-pages/man8/ss.8.html>`_ where any
124124
additional information needs a kernel patch.
125125

126-
To solve this problem, the `drgn
127-
<https://www.kernel.org/doc/html/latest/bpf/drgn.html>`_ tool is often used to
126+
To solve this problem, the :doc:`drgn <drgn>` tool is often used to
128127
dig out the kernel data with no kernel change. However, the main drawback for
129128
drgn is performance, as it cannot do pointer tracing inside the kernel. In
130129
addition, drgn cannot validate a pointer value and may read invalid data if the

Documentation/bpf/map_xskmap.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BPF_MAP_TYPE_XSKMAP
1010

1111
The ``BPF_MAP_TYPE_XSKMAP`` is used as a backend map for XDP BPF helper
1212
call ``bpf_redirect_map()`` and ``XDP_REDIRECT`` action, like 'devmap' and 'cpumap'.
13-
This map type redirects raw XDP frames to `AF_XDP`_ sockets (XSKs), a new type of
13+
This map type redirects raw XDP frames to AF_XDP sockets (XSKs), a new type of
1414
address family in the kernel that allows redirection of frames from a driver to
1515
user space without having to traverse the full network stack. An AF_XDP socket
1616
binds to a single netdev queue. A mapping of XSKs to queues is shown below:
@@ -181,12 +181,11 @@ AF_XDP-forwarding programs in the `bpf-examples`_ directory in the `libxdp`_ rep
181181
For a detailed explanation of the AF_XDP interface please see:
182182

183183
- `libxdp-readme`_.
184-
- `AF_XDP`_ kernel documentation.
184+
- Documentation/networking/af_xdp.rst.
185185

186186
.. note::
187187
The most comprehensive resource for using XSKMAPs and AF_XDP is `libxdp`_.
188188

189189
.. _libxdp: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp
190-
.. _AF_XDP: https://www.kernel.org/doc/html/latest/networking/af_xdp.html
191190
.. _bpf-examples: https://github.com/xdp-project/bpf-examples
192191
.. _libxdp-readme: https://github.com/xdp-project/xdp-tools/tree/master/lib/libxdp#using-af_xdp-sockets

0 commit comments

Comments
 (0)