Re: [PATCH v3 0/4] Fix and optimize BPF tailcall for LoongArch
From: Daniel Borkmann
Date: Thu Jul 09 2026 - 04:58:36 EST
On 7/7/26 12:15 PM, Tiezhu Yang wrote:
Based on 7.2-rc2, tested on a Loongson-3A6000 physical machine.
Here are the test results:
$ sudo modprobe test_bpf test_suite=test_tail_calls
$ dmesg -t | tail -1
test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
$ sudo ./test_progs -t tailcalls | tail -1
Summary: 1/37 PASSED, 0 SKIPPED, 0 FAILED
v2 -> v3:
-- Patch 1: Add Fixes tag.
-- Patch 2: Update the commit message and add Fixes tag.
-- Patch 3: Update the commit message and add Fixes tag.
-- Patch 4: Condense the code comments and update the commit message.
No code changes.
Tiezhu/Huacai, do you want us to route these via bpf-next tree?
Tiezhu Yang (4):
LoongArch: BPF: Optimize redundant TCC loads in epilogue
LoongArch: BPF: Move arena register slot below TCC context
LoongArch: BPF: Refactor jump offset calculation in tail call
LoongArch: BPF: Implement branchless conditional move for TCC
arch/loongarch/include/asm/inst.h | 6 +++
arch/loongarch/net/bpf_jit.c | 85 +++++++++++--------------------
2 files changed, 36 insertions(+), 55 deletions(-)