Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2507490ybg; Fri, 31 Jul 2020 01:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlM5XQkjzZNLGc6C+hbPJerlMiL6wBb21HcHZunMfAmOSV/cHwZEGiimu3qVhBJxov+gwz X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr2784634eds.215.1596184338185; Fri, 31 Jul 2020 01:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596184338; cv=none; d=google.com; s=arc-20160816; b=HguGN7fFvvtx1mShKrLmq4F0g1xQFBEY7JhoBImzlRWSKjBD1fSCH8iC23T33Shs+z XDcoO9SOKtkMHyvn47mrxY+XgHDnhMctG20uF9vdSjQojLUFwaQhVil/IeChRqpSLT/2 qf2sgz2/qEjPpBZxp6XKUjl3fhWPUM0T8+jRJiq2n06hLJSxGHiMr6LGM2YCU7A4bbEz 1OQ7ZhkZYRdOqFhTM90TcBOLQUeqwICvX4XGcVLC2Y8kZQFWf0fsG4rUga2bMEsQQI9A QFkGmlXzHK1UZC5XcwLPhDI4L2BWu+Vg039UsCTNWASXai6yoQjw5Fj6u/6wjVvwBqqH 8irA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=uS0Zzz6Sh1eV0/RkiHBeob0B7hkCyNHPCddGhgqqo8U=; b=F252jOTed6hWncDDicE97zBGRmKYeluWAx9eeMlbOHdSHN0/2db3IPDXXT30cbDjkX Ngga3PcOk5hdzC9NimrBJjkL6+mn47OW7+fJ4nJrFa0YLMXVrW6i1gx8fzOd0fXXHDVJ jKliWhqi2iZGQytdyLnUIWUQvRICJhoHosDe21KOA+rdYGXqIzwTCX3KahpdD6ETA/au UwydpbajV3iKiZ+aRFZh6UAKMauSiEqBo13XpW1vwWyv7JrajgBnrvzUeMdioJGF7PP6 tVvZSy1F6f9SDktWwbtl3dg7EHB0YOzwvXju+gKhIcTVjsvd0VwSrmccZzgxaZw/oy+Q ig4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr26si4940799ejb.47.2020.07.31.01.31.56; Fri, 31 Jul 2020 01:32:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731890AbgGaI3m (ORCPT + 99 others); Fri, 31 Jul 2020 04:29:42 -0400 Received: from mail.loongson.cn ([114.242.206.163]:41852 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731648AbgGaI3l (ORCPT ); Fri, 31 Jul 2020 04:29:41 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxH99O1iNfpO8CAA--.8S2; Fri, 31 Jul 2020 16:29:03 +0800 (CST) From: Tiezhu Yang To: Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann Cc: Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , "David S. Miller" , Jakub Kicinski , "Tobin C. Harding" , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next v3] Documentation/bpf: Use valid and new links in index.rst Date: Fri, 31 Jul 2020 16:29:02 +0800 Message-Id: <1596184142-18476-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0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r0_Gr1UYxBIdaVFxhVjvj DU0xZFpf9x07b5q2iUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: d9b9170a2653 ("docs: bpf: Rename README.rst to index.rst") Fixes: cb3f0d56e153 ("docs: networking: convert filter.txt to ReST") Signed-off-by: Tiezhu Yang --- Documentation/bpf/index.rst | 12 ++++++------ Documentation/networking/filter.rst | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/bpf/index.rst b/Documentation/bpf/index.rst index 26f4bb3..44ca8ea 100644 --- a/Documentation/bpf/index.rst +++ b/Documentation/bpf/index.rst @@ -5,10 +5,10 @@ BPF Documentation This directory contains documentation for the BPF (Berkeley Packet Filter) facility, with a focus on the extended BPF version (eBPF). -This kernel side documentation is still work in progress. The main +This kernel side documentation is still work in progress. The main textual documentation is (for historical reasons) described in -`Documentation/networking/filter.rst`_, which describe both classical -and extended BPF instruction-set. +:ref:`networking-filter`, which describe both classical and extended +BPF instruction-set. The Cilium project also maintains a `BPF and XDP Reference Guide`_ that goes into great technical depth about the BPF Architecture. @@ -68,7 +68,7 @@ Testing and debugging BPF .. Links: -.. _Documentation/networking/filter.rst: ../networking/filter.txt +.. _networking-filter: ../networking/filter.rst .. _man-pages: https://www.kernel.org/doc/man-pages/ -.. _bpf(2): http://man7.org/linux/man-pages/man2/bpf.2.html -.. _BPF and XDP Reference Guide: http://cilium.readthedocs.io/en/latest/bpf/ +.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html +.. _BPF and XDP Reference Guide: https://docs.cilium.io/en/latest/bpf/ diff --git a/Documentation/networking/filter.rst b/Documentation/networking/filter.rst index a1d3e19..debb59e 100644 --- a/Documentation/networking/filter.rst +++ b/Documentation/networking/filter.rst @@ -1,5 +1,7 @@ .. SPDX-License-Identifier: GPL-2.0 +.. _networking-filter: + ======================================================= Linux Socket Filtering aka Berkeley Packet Filter (BPF) ======================================================= -- 2.1.0