bpf, docs: Linux byteswap note

Add Linux byteswap note.

Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Link: https://lore.kernel.org/r/20220927185958.14995-2-dthaler1968@googlemail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Dave Thaler 2022-09-27 18:59:45 +00:00 коммит произвёл Alexei Starovoitov
Родитель 6166da0a02
Коммит 9a0bf21337
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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
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
===================================== =====================================