bpf, docs: Clarify definitions of various instructions
authorDave Thaler <dthaler1968@googlemail.com>
Fri, 26 Jan 2024 04:00:50 +0000 (20:00 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 26 Jan 2024 18:05:38 +0000 (19:05 +0100)
commite48f0f4a9bfed8947e4d1123e8b6a15c18ee1708
treec0d661ff0303c6bf02ae0aad1d355e72cbd8ea23
parente6be8cd5d3cf54ccd0ae66027d6f4697b15f4c3e
bpf, docs: Clarify definitions of various instructions

Clarify definitions of several instructions:

* BPF_NEG does not support BPF_X
* BPF_CALL does not support BPF_JMP32 or BPF_X
* BPF_EXIT does not support BPF_X
* BPF_JA does not support BPF_X (was implied but not explicitly stated)

Also fix a typo in the wide instruction figure where the field is
actually named "opcode" not "code".

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20240126040050.8464-1-dthaler1968@gmail.com
Documentation/bpf/standardization/instruction-set.rst