Commit 9a0bf213 authored by Dave Thaler's avatar Dave Thaler Committed by Alexei Starovoitov
Browse files

bpf, docs: Linux byteswap note

parent 6166da0a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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
-----------------

+5 −0
Original line number Diff line number Diff line
@@ -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
=====================================