Skip to content

LoongArch: More BPF features

Hengqi Chen loongarch 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 1 replyApplied

Changes in v2 from the cover letter

* rebase with latest loongarch-next
* collect Acked-by and Tested-by

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3LoongArch: BPF: Use BPF prog pack allocatorarch/loongarch/net/bpf_jit.c arch/loongarch/net/bpf_jit.h+87 -380 replies
2/3LoongArch: BPF: Implement PROBE_MEM32 pseudo instructionsarch/loongarch/net/bpf_jit.c arch/loongarch/net/bpf_jit.h+68 -60 replies
3/3LoongArch: BPF: Implement bpf_addr_space_cast instructionarch/loongarch/net/bpf_jit.c arch/loongarch/net/bpf_jit.h+16 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchTiezhu YangVincent Li
1/3A-b T-b
2/3A-b T-b
3/3A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] LoongArch: More BPF features

This small set implements new features for BPF.

* Patch 1 uses pack allocator for BPF programs (BPF trampoline already use pack allocator, this make it complete), with this, no regression on existing selftests

* Patch 2 & 3 implements basic support for BPF Arena, the following test cases passed:
- arena_htab
- arena_list
- arena_strsearch
- verifier_arena
- verifier_arena_large

This is built and tested on top of the cmpxchg128 series ([0]).

[0]: https://lore.kernel.org/loongarch/[email protected]/T/#t

changelog:
v1 -> v2:
* rebase with latest loongarch-next
* collect Acked-by and Tested-by

Hengqi Chen (3):
LoongArch: BPF: Use BPF prog pack allocator
LoongArch: BPF: Implement PROBE_MEM32 pseudo instructions
LoongArch: BPF: Implement bpf_addr_space_cast instruction

 arch/loongarch/net/bpf_jit.c | 211 ++++++++++++++++++++++++++++-------
 arch/loongarch/net/bpf_jit.h |   4 +-
 2 files changed, 171 insertions(+), 44 deletions(-)

--
2.43.5