summaryrefslogtreecommitdiff
path: root/arch/loongarch/net
diff options
context:
space:
mode:
authorHengqi Chen <hengqi.chen@gmail.com>2023-02-18 13:53:17 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-02-23 00:07:28 +0300
commitbb035ef0cc91e115faa80187ac8886a7f1914d06 (patch)
treef73400ce7389d2c38b98260b6a7d8cb079845e79 /arch/loongarch/net
parentb539a287baaa8501b3af4f7f99aba3c0b1d822f8 (diff)
downloadlinux-bb035ef0cc91e115faa80187ac8886a7f1914d06.tar.xz
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/net')
-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;
+}