Skip to content

Commit

Permalink
bpf, docs: Linux byteswap note
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Thaler authored and Alexei Starovoitov committed Sep 30, 2022
1 parent 6166da0 commit 9a0bf21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Documentation/bpf/instruction-set.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ Examples:

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

Expand Down
5 changes: 5 additions & 0 deletions Documentation/bpf/linux-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====================================

Expand Down

0 comments on commit 9a0bf21

Please sign in to comment.