From 641e8b889ef088ad87177641dfb5f034a991f2d1 Mon Sep 17 00:00:00 2001 From: Harry van Haaren Date: Fri, 27 May 2022 13:45:00 +0000 Subject: [PATCH] doc: fix formatting and link in BPF library guide [ upstream commit 85bd316d084f6a2715f8574f322f09b56075789b ] Small improvements to the documentation based on Sphinx HTML doc output. Fixes: 14b8f0bbe519 ("doc: add BPF library guide") Fixes: b901d928361c ("bpf: support packet data load instructions") Signed-off-by: Harry van Haaren Acked-by: Konstantin Ananyev --- 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 1feb7734a35..1cf2d59429e 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.