From ff4096d35b1c40d7e6b5d1aea4741ab2bea0297d Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Mon, 2 Oct 2023 11:24:10 +0200 Subject: sys/linux: templatize ldst, alu, and call_helper BPF instructions This commit templatizes the bpf_insn_ldst, bpf_insn_alu, bpf_insn_call_helper, bpf_insn_map_value BPF instruction descriptions. This will allow subsequent commits to define new, more specific descriptions of those instructions in addition to the existing generic descriptions. For example, a subsequent commit will use the new bpf_insn_call_helper_t template to define a call to helper bpf_snprintf specifically. This commit doesn't have any functional changes. Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt.const | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/linux/bpf.txt.const') diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 2b0eb6e54..c3ccf7bfe 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -113,6 +113,7 @@ BPF_JSGE0 = 7 BPF_JSGT0 = 6 BPF_JSLE0 = 13 BPF_JSLT0 = 12 +BPF_K0 = 0 BPF_LD = 0 BPF_LDX = 1 BPF_LINE_INFO_SIZE = 16 @@ -271,6 +272,7 @@ BPF_XDP = 37 BPF_XDP_CPUMAP = 35 BPF_XDP_DEVMAP = 33 BPF_XOR0 = 10 +BPF_X0 = 1 BTF_INT_BOOL = 4 BTF_INT_CHAR = 2 BTF_INT_SIGNED = 1 -- cgit mrf-deployment