Closed dthaler closed 4 months ago
Question posted to the list: https://mailarchive.ietf.org/arch/msg/bpf/a3mPMDnp6Y_yREfRj6OMtvFJy3o/
In response, Yonghong wrote:
The other four must have next_imm to be 0. No use of next_imm in thee four insns kindly implies this. See uapi bpf.h for details (search BPF_PSEUDO_MAP_FD).
Section 2 says "Note that most instructions do not use all of the fields. Unused fields shall be cleared to zero." So this is already implied in the document.
Yonghong posted proposed text in https://mailarchive.ietf.org/arch/msg/bpf/JixGnHEotgo1Arql9FLXruIlqiY/
Fixed in draft -01
The spec defines:
The 64-bit immediate instructions section then says:
Some instructions then nicely state how to use the full 64 bit immediate value, such as
Others don't:
How is next_imm used in those four? Must it be 0? Or can it be anything and it's ignored? Or is it used for something?