aboutsummaryrefslogtreecommitdiff
path: root/arch/loongarch
diff options
context:
space:
mode:
authorGravatar Hengqi Chen <hengqi.chen@gmail.com> 2023-02-18 10:53:17 +0000
committerGravatar Alexei Starovoitov <ast@kernel.org> 2023-02-22 13:07:28 -0800
commitbb035ef0cc91e115faa80187ac8886a7f1914d06 (patch)
treef73400ce7389d2c38b98260b6a7d8cb079845e79 /arch/loongarch
parentselftests/bpf: Fix cross compilation with CLANG_CROSS_FLAGS (diff)
downloadlinux-bb035ef0cc91e115faa80187ac8886a7f1914d06.tar.gz
linux-bb035ef0cc91e115faa80187ac8886a7f1914d06.tar.bz2
linux-bb035ef0cc91e115faa80187ac8886a7f1914d06.zip
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 <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>
Diffstat (limited to 'arch/loongarch')
-rw-r--r--arch/loongarch/net/bpf_jit.c6
1 files changed, 6 insertions, 0 deletions
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;
+}