Skip to content

Commit ffba964

Browse files
seehearfeelborkmann
authored andcommitted
Documentation/bpf: Use valid and new links in index.rst
There exists an error "404 Not Found" when I click the html link of "Documentation/networking/filter.rst" in the BPF documentation [1], fix it. Additionally, use the new links about "BPF and XDP Reference Guide" and "bpf(2)" to avoid redirects. [1] https://www.kernel.org/doc/html/latest/bpf/ Fixes: d9b9170 ("docs: bpf: Rename README.rst to index.rst") Fixes: cb3f0d5 ("docs: networking: convert filter.txt to ReST") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/1596184142-18476-1-git-send-email-yangtiezhu@loongson.cn
1 parent 1acf8f9 commit ffba964

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎Documentation/bpf/index.rst‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ BPF Documentation
55
This directory contains documentation for the BPF (Berkeley Packet
66
Filter) facility, with a focus on the extended BPF version (eBPF).
77

8-
This kernel side documentation is still work in progress. The main
8+
This kernel side documentation is still work in progress. The main
99
textual documentation is (for historical reasons) described in
10-
`Documentation/networking/filter.rst`_, which describe both classical
11-
and extended BPF instruction-set.
10+
:ref:`networking-filter`, which describe both classical and extended
11+
BPF instruction-set.
1212
The Cilium project also maintains a `BPF and XDP Reference Guide`_
1313
that goes into great technical depth about the BPF Architecture.
1414

@@ -68,7 +68,7 @@ Testing and debugging BPF
6868

6969

7070
.. Links:
71-
.. _Documentation/networking/filter.rst: ../networking/filter.txt
71+
.. _networking-filter: ../networking/filter.rst
7272
.. _man-pages: https://www.kernel.org/doc/man-pages/
73-
.. _bpf(2): http://man7.org/linux/man-pages/man2/bpf.2.html
74-
.. _BPF and XDP Reference Guide: http://cilium.readthedocs.io/en/latest/bpf/
73+
.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html
74+
.. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/

‎Documentation/networking/filter.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.. SPDX-License-Identifier: GPL-2.0
22
3+
.. _networking-filter:
4+
35
=======================================================
46
Linux Socket Filtering aka Berkeley Packet Filter (BPF)
57
=======================================================

0 commit comments

Comments
 (0)