diff options
author | Hengqi Chen <hengqi.chen@gmail.com> | 2023-02-18 10:53:17 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-02-22 13:07:28 -0800 |
commit | bb035ef0cc91e115faa80187ac8886a7f1914d06 (patch) | |
tree | f73400ce7389d2c38b98260b6a7d8cb079845e79 | |
parent | b539a287baaa8501b3af4f7f99aba3c0b1d822f8 (diff) |
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>
-rw-r--r-- | arch/loongarch/net/bpf_jit.c | 6 |
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; +} |