Skip to contentSkip to conversation

LoongArch: BPF: Support mixing bpf2bpf and tailcalls

PATCH New Hengqi Chen 1 participant 1 message Feb 18, 2023

Subsystems (3)
lore
Share & tools
lore

Hengqi Chen

author reviewer
#0 lore raw

PATCH 1/1 LoongArch: BPF: Support mixing bpf2bpf and tailcalls

The current implementation already allow such mixing. Let's enable it in JIT.

---
 arch/loongarch/net/bpf_jit.c | 6 ++++++
 1 file changed, 6 insertions(+)
arch/loongarch/net/bpf_jit.c +6 -0
index 288003a9f0ca..e70c846efaa1 100644
@@ -1248,3 +1248,9 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
 
 	return prog;
 }
+
+/* Indicate the JIT backend supports mixing bpf2bpf and tailcalls. */
+bool bpf_jit_supports_subprog_tailcalls(void)
+{
+	return true;
+}

--
2.31.1