Skip to content

eBPF arm64 JIT support

[email protected] dpdk-dev 1 version Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 23 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8bpf/arm64: add build infrastructureMAINTAINERS doc/guides/prog_guide/bpf_lib.rst doc/guides/rel_notes/release_19_11.rst +5 more+34 -40 replies
2/8bpf/arm64: add prologue and epiloguelib/librte_bpf/bpf_jit_arm64.c+464 -20 replies
3/8bpf/arm64: add basic arithmetic operationslib/librte_bpf/bpf_jit_arm64.c+299 -10 replies
4/8bpf/arm64: add logical operationslib/librte_bpf/bpf_jit_arm64.c+189 -00 replies
5/8bpf/arm64: add byte swap operationslib/librte_bpf/bpf_jit_arm64.c+87 -00 replies
6/8bpf/arm64: add load and store operationslib/librte_bpf/bpf_jit_arm64.c+84 -00 replies
7/8bpf/arm64: add atomic-exchange-and-add operationlib/librte_bpf/bpf_jit_arm64.c+84 -11 reply
8/8bpf/arm64: add branch operationlib/librte_bpf/bpf_jit_arm64.c+229 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/8] eBPF arm64 JIT support

From: Jerin Jacob <[email protected]>

Added eBPF arm64 JIT support to improve the eBPF program performance on arm64.

dpdk.org/examples/bpf/t1.c application shows around 50% improvement on OCTEON TX2 platform in JIT vs interpreter mode.

Verified the implementation using existing bpf_autotest application.

# echo "bpf_autotest" | sudo ./build/app/test -c 0x3

RTE>>bpf_autotest
run_test(test_store1) start run_test(test_store2) start run_test(test_load1) start run_test(test_ldimm1) start run_test(test_mul1) start run_test(test_shift1) start run_test(test_jump1) start run_test(test_alu1) start run_test(test_bele1) start run_test(test_xadd1) start run_test(test_div1) start bpf_exec(0xffffa37c0000): division by 0 at pc: 0x68; run_test(test_call1) start run_test(test_call2) start run_test(test_call3) start
Test OK

Jerin Jacob (8):
bpf/arm64: add build infrastructure bpf/arm64: add prologue and epilogue bpf/arm64: add basic arithmetic operations bpf/arm64: add logical operations bpf/arm64: add byte swap operations bpf/arm64: add load and store operations bpf/arm64: add atomic-exchange-and-add operation bpf/arm64: add branch operation

 MAINTAINERS                            |    1 +
 doc/guides/prog_guide/bpf_lib.rst      |    2 +-
 doc/guides/rel_notes/release_19_11.rst |    5 +
 lib/librte_bpf/Makefile                |    2 +
 lib/librte_bpf/bpf.c                   |    4 +-
 lib/librte_bpf/bpf_impl.h              |    3 +-
 lib/librte_bpf/bpf_jit_arm64.c         | 1451 ++++++++++++++++++++++++
 lib/librte_bpf/meson.build             |    2 +
 8 files changed, 1466 insertions(+), 4 deletions(-)
 create mode 100644 lib/librte_bpf/bpf_jit_arm64.c
Signature · 1 line
2.23.0