提交 9a0bf213 编写于 作者: D Dave Thaler 提交者: Alexei Starovoitov

bpf, docs: Linux byteswap note

Add Linux byteswap note.
Signed-off-by: NDave Thaler <dthaler@microsoft.com>
Link: https://lore.kernel.org/r/20220927185958.14995-2-dthaler1968@googlemail.comSigned-off-by: NAlexei Starovoitov <ast@kernel.org>
上级 6166da0a
...@@ -156,10 +156,6 @@ Examples: ...@@ -156,10 +156,6 @@ Examples:
dst_reg = htobe64(dst_reg) dst_reg = htobe64(dst_reg)
``BPF_FROM_LE`` and ``BPF_FROM_BE`` exist as aliases for ``BPF_TO_LE`` and
``BPF_TO_BE`` respectively.
Jump instructions Jump instructions
----------------- -----------------
......
...@@ -7,6 +7,11 @@ Linux implementation notes ...@@ -7,6 +7,11 @@ Linux implementation notes
This document provides more details specific to the Linux kernel implementation of the eBPF instruction set. This document provides more details specific to the Linux kernel implementation of the eBPF instruction set.
Byte swap instructions
======================
``BPF_FROM_LE`` and ``BPF_FROM_BE`` exist as aliases for ``BPF_TO_LE`` and ``BPF_TO_BE`` respectively.
Legacy BPF Packet access instructions Legacy BPF Packet access instructions
===================================== =====================================
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册