Skip to content

bpf/arm64: support packet data load instructions

Christophe Fontaine dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v11 patch 12 repliesSuperseded

Changes in v2 from the cover letter

- use emit_return_zero_if_src_zero instead of manual call
- add fast path (direct read from mbuf->buf_addr) if the requested data is present in the first mbuf and fallback to 'slow path' (call to __rte_pktmbuf_read) otherwise.
- add tests for BPF_LD ABS/IND amd slow path.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf/arm64: fix offset type to allow a negative jumplib/bpf/bpf_jit_arm64.c+1 -10 replies
2/2bpf/arm64: support packet data load instructionsapp/test/test_bpf.c lib/bpf/bpf_jit_arm64.c+207 -04 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] bpf/arm64: support packet data load instructions

v2:
- use emit_return_zero_if_src_zero instead of manual call
- add fast path (direct read from mbuf->buf_addr) if the requested data is present in the first mbuf and fallback to 'slow path' (call to __rte_pktmbuf_read) otherwise.
- add tests for BPF_LD ABS/IND amd slow path.

Christophe Fontaine (2):
bpf/arm64: fix offset type to allow a negative jump bpf/arm64: support packet data load instructions

 app/test/test_bpf.c     | 121 ++++++++++++++++++++++++++++++++++++++++
 lib/bpf/bpf_jit_arm64.c |  88 ++++++++++++++++++++++++++++-
 2 files changed, 208 insertions(+), 1 deletion(-)
Signature · 1 line
2.53.0