Commit bb035ef0 authored by Hengqi Chen's avatar Hengqi Chen Committed by Alexei Starovoitov
Browse files

LoongArch: BPF: Support mixing bpf2bpf and tailcalls



The current implementation already allow such mixing.
Let's enable it in JIT.

Signed-off-by: default avatarHengqi Chen <hengqi.chen@gmail.com>
Link: https://lore.kernel.org/r/20230218105317.4139666-1-hengqi.chen@gmail.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent b539a287
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1248,3 +1248,9 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)

	return prog;
}

/* Indicate the JIT backend supports mixing bpf2bpf and tailcalls. */
bool bpf_jit_supports_subprog_tailcalls(void)
{
	return true;
}