From: Hengqi Chen Date: Sat, 18 Feb 2023 10:53:17 +0000 (+0000) Subject: LoongArch: BPF: Support mixing bpf2bpf and tailcalls X-Git-Tag: microblaze-v6.6~366^2~413^2~50 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=bb035ef0cc91e115faa80187ac8886a7f1914d06;p=linux-2.6-microblaze.git LoongArch: BPF: Support mixing bpf2bpf and tailcalls The current implementation already allow such mixing. Let's enable it in JIT. Signed-off-by: Hengqi Chen Link: https://lore.kernel.org/r/20230218105317.4139666-1-hengqi.chen@gmail.com Signed-off-by: Alexei Starovoitov --- 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 @@ out: return prog; } + +/* Indicate the JIT backend supports mixing bpf2bpf and tailcalls. */ +bool bpf_jit_supports_subprog_tailcalls(void) +{ + return true; +}