LoongArch: BPF: Support mixing bpf2bpf and tailcalls
authorHengqi Chen <hengqi.chen@gmail.com>
Sat, 18 Feb 2023 10:53:17 +0000 (10:53 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 22 Feb 2023 21:07:28 +0000 (13:07 -0800)
The current implementation already allow such mixing.
Let's enable it in JIT.

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/r/20230218105317.4139666-1-hengqi.chen@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/loongarch/net/bpf_jit.c

index 288003a..e70c846 100644 (file)
@@ -1248,3 +1248,9 @@ out:
 
        return prog;
 }
+
+/* Indicate the JIT backend supports mixing bpf2bpf and tailcalls. */
+bool bpf_jit_supports_subprog_tailcalls(void)
+{
+       return true;
+}