Skip to content

Commit

Permalink
doc: fix formatting and link in BPF library guide
Browse files Browse the repository at this point in the history
[ upstream commit 85bd316 ]

Small improvements to the documentation based on Sphinx HTML doc output.

Fixes: 14b8f0b ("doc: add BPF library guide")
Fixes: b901d92 ("bpf: support packet data load instructions")

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>
  • Loading branch information
harry-van-haaren authored and steevenlee committed Jun 20, 2022
1 parent 8f68d6f commit 641e8b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/guides/prog_guide/bpf_lib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ user-space dpdk application.

It supports basic set of features from eBPF spec.
Please refer to the
`eBPF spec <https://www.kernel.org/doc/Documentation/networking/filter.txt>`
`eBPF spec <https://www.kernel.org/doc/Documentation/networking/filter.txt>`_
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).
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 641e8b8

Please sign in to comment.