Commit 58d8a3fc authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alexei Starovoitov
Browse files

bpf, docs: Fully document the JMP mode modifiers



Add a description for all the modifiers.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220103183556.41040-7-hch@lst.de
parent 9e533e22
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -173,15 +173,15 @@ The size modifier is one of:

The mode modifier is one of:

  =============  =====  =====================
  =============  =====  ====================================
  mode modifier  value  description
  =============  =====  =====================
  =============  =====  ====================================
  BPF_IMM        0x00   used for 64-bit mov
  BPF_ABS        0x20
  BPF_IND        0x40
  BPF_MEM        0x60
  BPF_ABS        0x20   legacy BPF packet access
  BPF_IND        0x40   legacy BPF packet access
  BPF_MEM        0x60   all normal load and store operations
  BPF_ATOMIC     0xc0   atomic operations
  =============  =====  =====================
  =============  =====  ====================================

BPF_MEM | <size> | BPF_STX means::