[PATCH v1 0/4] LoongArch: BPF: Support instructions array, indirect jumps and calls

From: Tiezhu Yang

Date: Sun Nov 22 2026 - 23:39:38 EST


This series was created on top of the following unmerged patches,
though there is no actual dependency and git am applies cleanly
without them:

LoongArch: BPF: Fix the offset of stptr.w and stptr.d stores
https://lore.kernel.org/loongarch/20261118071444.10258-1-dongtai.guo@xxxxxxxxx/

LoongArch: BPF: Optimize doubleword loads with ld.d and ldptr.d
https://lore.kernel.org/loongarch/20261118081201.10498-1-yangtiezhu@xxxxxxxxxxx/

Tested with the series of BPF selftests, here are the test results:

$ sudo ./test_progs -t bpf_insn_array | tail -1
Summary: 1/20 PASSED, 0 SKIPPED, 0/0 FAILED

$ sudo ./test_progs-cpuv4 -t gotox | tail -1
Summary: 2/14 PASSED, 0 SKIPPED, 0/0 FAILED

$ sudo ./test_progs -t callx | tail -1
Summary: 6/89 PASSED, 6 SKIPPED, 0/0 FAILED

Tiezhu Yang (4):
LoongArch: BPF: Optimize BPF_CALL control flow
LoongArch: BPF: Add support for instructions array
LoongArch: BPF: Add support for indirect jumps
LoongArch: BPF: Add support for indirect calls

arch/loongarch/net/bpf_jit.c | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)

--
2.42.0