summaryrefslogtreecommitdiff
path: root/Documentation/bpf/linux-notes.rst
diff options
context:
space:
mode:
authorDave Thaler <dthaler@microsoft.com>2022-09-27 21:59:45 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-09-30 23:40:59 +0300
commit9a0bf21337c667375d918adc41239ce54304a12c (patch)
tree7d8723d706fc327235bdabb6370cdbece0e8612b /Documentation/bpf/linux-notes.rst
parent6166da0a02cde26c065692d0c05eb685178fee75 (diff)
downloadlinux-9a0bf21337c667375d918adc41239ce54304a12c.tar.xz
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>
Diffstat (limited to 'Documentation/bpf/linux-notes.rst')
-rw-r--r--Documentation/bpf/linux-notes.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/bpf/linux-notes.rst b/Documentation/bpf/linux-notes.rst
index 93c01386d92c..1c31379b469f 100644
--- a/Documentation/bpf/linux-notes.rst
+++ b/Documentation/bpf/linux-notes.rst
@@ -7,6 +7,11 @@ Linux implementation notes
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
=====================================