projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b539a28
)
LoongArch: BPF: Support mixing bpf2bpf and tailcalls
author
Hengqi Chen
<hengqi.chen@gmail.com>
Sat, 18 Feb 2023 10:53:17 +0000
(10:53 +0000)
committer
Alexei 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
patch
|
blob
|
history
diff --git
a/arch/loongarch/net/bpf_jit.c
b/arch/loongarch/net/bpf_jit.c
index 288003a9f0cae478a058102a6413e15a07585b29..e70c846efaa13b8072a4e895295c03d61369c2cf 100644
(file)
--- 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;
+}