BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] LoongArch: BPF: Support mixing bpf2bpf and tailcalls
@ 2023-02-18 10:53 Hengqi Chen
  0 siblings, 0 replies; only message in thread
From: Hengqi Chen @ 2023-02-18 10:53 UTC (permalink / raw)
  To: bpf, loongarch; +Cc: hengqi.chen, yangtiezhu

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

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
---
 arch/loongarch/net/bpf_jit.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/loongarch/net/bpf_jit.c b/arch/loongarch/net/bpf_jit.c
index 288003a9f0ca..e70c846efaa1 100644
--- a/arch/loongarch/net/bpf_jit.c
+++ b/arch/loongarch/net/bpf_jit.c
@@ -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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-18 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-18 10:53 [PATCH bpf-next] LoongArch: BPF: Support mixing bpf2bpf and tailcalls Hengqi Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox