bpf, docs: Clarify that MOVSX is only for BPF_X not BPF_K
authorDave Thaler <dthaler1968@googlemail.com>
Thu, 18 Jan 2024 23:29:54 +0000 (15:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jan 2024 23:10:08 +0000 (15:10 -0800)
commit20e109ea9842158a153b24ef42ec5cc3d44e9485
treeba89b7c2fba858d3ad06c588e2cf7c5621ca0a84
parentb3f086a7a136d721d112f35fe4cd7272e93cf06b
bpf, docs: Clarify that MOVSX is only for BPF_X not BPF_K

Per discussion on the mailing list at
https://mailarchive.ietf.org/arch/msg/bpf/uQiqhURdtxV_ZQOTgjCdm-seh74/
the MOVSX operation is only defined to support register extension.

The document didn't previously state this and incorrectly implied
that one could use an immediate value.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Acked-by: David Vernet <void@manifault.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240118232954.27206-1-dthaler1968@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/standardization/instruction-set.rst