summaryrefslogtreecommitdiffstats
path: root/Documentation/bpf/standardization
diff options
context:
space:
mode:
authorDave Thaler <dthaler1968@googlemail.com>2024-02-21 09:54:19 -0800
committerAlexei Starovoitov <ast@kernel.org>2024-02-22 09:11:49 -0800
commit89ee838130f470afcd02b30ca868f236a3f3b1d2 (patch)
tree601d5b8af76dcb769c9a5331cf35231d458422d3 /Documentation/bpf/standardization
parentc1bb68f6b2f6be5297c5fbad5caebf67d0dd3034 (diff)
downloadlinux-89ee838130f470afcd02b30ca868f236a3f3b1d2.tar.gz
linux-89ee838130f470afcd02b30ca868f236a3f3b1d2.tar.bz2
linux-89ee838130f470afcd02b30ca868f236a3f3b1d2.zip
bpf, docs: specify which BPF_ABS and BPF_IND fields were zero
Specifying which fields were unused allows IANA to only list as deprecated instructions that were actually used, leaving the rest as unassigned and possibly available for future use for something else. Signed-off-by: Dave Thaler <dthaler1968@gmail.com> Acked-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/r/20240221175419.16843-1-dthaler1968@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/bpf/standardization')
-rw-r--r--Documentation/bpf/standardization/instruction-set.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst
index 45cffe94c752..f3269d6dd5e0 100644
--- a/Documentation/bpf/standardization/instruction-set.rst
+++ b/Documentation/bpf/standardization/instruction-set.rst
@@ -658,6 +658,7 @@ Legacy BPF Packet access instructions
BPF previously introduced special instructions for access to packet data that were
carried over from classic BPF. These instructions used an instruction
class of BPF_LD, a size modifier of BPF_W, BPF_H, or BPF_B, and a
-mode modifier of BPF_ABS or BPF_IND. However, these instructions are
-deprecated and should no longer be used. All legacy packet access
-instructions belong to the "legacy" conformance group.
+mode modifier of BPF_ABS or BPF_IND. The 'dst_reg' and 'offset' fields were
+set to zero, and 'src_reg' was set to zero for BPF_ABS. However, these
+instructions are deprecated and should no longer be used. All legacy packet
+access instructions belong to the "legacy" conformance group.