linux-stable/Documentation
Yonghong Song ced33f2cfa docs/bpf: Improve documentation of 64-bit immediate instructions
For 64-bit immediate instruction, 'BPF_IMM | BPF_DW | BPF_LD' and
src_reg=[0-6], the current documentation describes the 64-bit
immediate is constructed by:

  imm64 = (next_imm << 32) | imm

But actually imm64 is only used when src_reg=0. For all other
variants (src_reg != 0), 'imm' and 'next_imm' have separate special
encoding requirement and imm64 cannot be easily used to describe
instruction semantics.

This patch clarifies that 64-bit immediate instructions use
two 32-bit immediate values instead of a 64-bit immediate value,
so later describing individual 64-bit immediate instructions
becomes less confusing.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Dave Thaler <dthaler1968@gmail.com>
Link: https://lore.kernel.org/bpf/20240127194629.737589-1-yonghong.song@linux.dev
2024-01-29 16:54:33 +01:00
..
2024-01-18 16:22:43 -08:00
2024-01-19 13:36:15 -08:00
2024-01-18 17:57:07 -08:00
2024-01-17 16:23:17 -08:00
2024-01-12 12:38:37 +01:00
2024-01-09 09:07:50 +10:00
2023-11-04 08:07:19 -10:00
2023-12-28 17:37:36 -06:00
2024-01-18 17:57:07 -08:00
2023-12-06 21:07:52 +01:00
2024-01-19 13:30:49 -08:00
2024-01-17 15:05:27 -08:00
2024-01-18 14:35:29 -08:00
2024-01-08 08:10:32 -05:00
2023-12-06 21:07:52 +01:00