Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hengqi Chen and committed by
Alexei Starovoitov
bb035ef0 b539a287

+6
+6
arch/loongarch/net/bpf_jit.c
··· 1248 1248 1249 1249 return prog; 1250 1250 } 1251 + 1252 + /* Indicate the JIT backend supports mixing bpf2bpf and tailcalls. */ 1253 + bool bpf_jit_supports_subprog_tailcalls(void) 1254 + { 1255 + return true; 1256 + }