2022-04-28 23:39:07

by Tiezhu Yang

[permalink] [raw]
Subject: [PATCH bpf-next v2 0/3] bpf, docs: Fix typos in instruction-set.rst

v2:
-- update the commit message of patch #2
-- add new patch #3

Tiezhu Yang (3):
bpf, docs: Remove duplicated word "instructions"
bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE
bpf, docs: Fix typo "respetively" to "respectively"

Documentation/bpf/instruction-set.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--
2.1.0


2022-04-29 21:44:25

by Tiezhu Yang

[permalink] [raw]
Subject: [PATCH bpf-next v2 2/3] bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE

According to include/uapi/linux/bpf.h:

#define BPF_FROM_LE BPF_TO_LE
#define BPF_FROM_BE BPF_TO_BE

BPF_FROM_BE exists as alias for BPF_TO_BE instead of BPF_TO_LE.

Signed-off-by: Tiezhu Yang <[email protected]>
---
Documentation/bpf/instruction-set.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/bpf/instruction-set.rst b/Documentation/bpf/instruction-set.rst
index 30b019c..00b0800 100644
--- a/Documentation/bpf/instruction-set.rst
+++ b/Documentation/bpf/instruction-set.rst
@@ -157,7 +157,7 @@ Examples:
dst_reg = htobe64(dst_reg)

``BPF_FROM_LE`` and ``BPF_FROM_BE`` exist as aliases for ``BPF_TO_LE`` and
-``BPF_TO_LE`` respetively.
+``BPF_TO_BE`` respetively.


Jump instructions
--
2.1.0