From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BDFDAA0543; Sat, 28 May 2022 13:09:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 674D3410DC; Sat, 28 May 2022 13:09:12 +0200 (CEST) Received: from forward500p.mail.yandex.net (forward500p.mail.yandex.net [77.88.28.110]) by mails.dpdk.org (Postfix) with ESMTP id AB2BA40F35 for ; Sat, 28 May 2022 13:09:09 +0200 (CEST) Received: from vla5-169af227e802.qloud-c.yandex.net (vla5-169af227e802.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3523:0:640:169a:f227]) by forward500p.mail.yandex.net (Yandex) with ESMTP id F09D6F01910; Sat, 28 May 2022 14:09:08 +0300 (MSK) Received: from vla3-3dd1bd6927b2.qloud-c.yandex.net (vla3-3dd1bd6927b2.qloud-c.yandex.net [2a02:6b8:c15:350f:0:640:3dd1:bd69]) by vla5-169af227e802.qloud-c.yandex.net (mxback/Yandex) with ESMTP id CbsDDd2RRm-98gOfb4P; Sat, 28 May 2022 14:09:08 +0300 X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1653736148; bh=qld417tEbL5eFJBuQXG3cd9ShETZWxdLPgGq2gcNAws=; h=In-Reply-To:From:Subject:References:Date:Message-ID:To; b=Wjan1cQbFsJUDX/qZe+Hi0ZMyDyCT2HfZnL+mwhcpDoeF9G5AOl/V9PZfNXN8r6d2 L/zsWIbLdiMyC+NP4SdDrs+gHAPBDdTTu5/uKo4fdg+t2mXzvlyY6mKv11BQYntEVa aOsjwzz33MHkyDNAkIev9VRRMS+AtxhNNLpPufTs= Authentication-Results: vla5-169af227e802.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla3-3dd1bd6927b2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id tTy9h463xf-97JSYm21; Sat, 28 May 2022 14:09:08 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Message-ID: <0dae6881-5668-24c7-7a57-a71207d33e3c@yandex.ru> Date: Sat, 28 May 2022 12:09:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 1/2] docs/bpf: fix formatting and link Content-Language: en-US To: Harry van Haaren , dev@dpdk.org References: <20220527134501.2209817-1-harry.van.haaren@intel.com> From: Konstantin Ananyev In-Reply-To: <20220527134501.2209817-1-harry.van.haaren@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 27/05/2022 14:45, Harry van Haaren пишет: > Small improvements to the documentation based on Sphinx HTML doc output. > > Signed-off-by: Harry van Haaren > > --- > > Cc: konstantin.v.ananyev@yandex.ru > > --- > doc/guides/prog_guide/bpf_lib.rst | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/doc/guides/prog_guide/bpf_lib.rst b/doc/guides/prog_guide/bpf_lib.rst > index 1feb7734a3..1cf2d59429 100644 > --- a/doc/guides/prog_guide/bpf_lib.rst > +++ b/doc/guides/prog_guide/bpf_lib.rst > @@ -10,7 +10,7 @@ user-space dpdk application. > > It supports basic set of features from eBPF spec. > Please refer to the > -`eBPF spec ` > +`eBPF spec `_ > for more information. > Also it introduces basic framework to load/unload BPF-based filters > on eth devices (right now only via SW RX/TX callbacks). > @@ -48,9 +48,9 @@ For example, ``(BPF_IND | BPF_W | BPF_LD)`` means: > .. code-block:: c > > uint32_t tmp; > - R0 = rte_pktmbuf_read((const struct rte_mbuf *)R6, src_reg + imm32, > - sizeof(tmp), &tmp); > - if (R0 == NULL) return FAILED; > + R0 = rte_pktmbuf_read((const struct rte_mbuf *)R6, src_reg + imm32, sizeof(tmp), &tmp); > + if (R0 == NULL) > + return FAILED; > R0 = ntohl(*(uint32_t *)R0); > > and ``R1-R5`` were scratched. Acked-by: Konstantin Ananyev