Skip to content

bpf: add support for BPF_ABS/BPF_IND instructions

Konstantin Ananyev dpdk-dev 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesApplied
  2. v15 patches 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5test/bpf: fix few small issuesapp/test/test_bpf.c+15 -260 replies
2/5bpf: fix add/sub min/max estimationslib/librte_bpf/bpf_validate.c+5 -50 replies
3/5bpf: add support for packet data load instructionsdoc/guides/prog_guide/bpf_lib.rst doc/guides/rel_notes/release_20_08.rst lib/librte_bpf/bpf_exec.c +1 more+170 -10 replies
4/5test/bpf: add new test cases for mbuf load instructionsapp/test/test_bpf.c+463 -00 replies
5/5bpf: x86 JIT support for packet data load instructionslib/librte_bpf/bpf_jit_x86.c lib/librte_bpf/bpf_validate.c+197 -11 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchMorten Brørup
1/5
2/5
3/5
4/5
5/5A-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 [dpdk-dev] [PATCH v2 0/5] bpf: add support for BPF_ABS/BPF_IND instructions

To fill the gap with linux kernel eBPF implementation,
add support for two non-generic instructions:
(BPF_ABS | <size> | BPF_LD) and (BPF_IND | <size> | BPF_LD) which are used to access packet data in a safe manner. Make necessary changes in BPF verifier, interpreter and x86 JIT code.

Konstantin Ananyev (5):
test/bpf: fix few small issues
bpf: fix add/sub min/max estimations
bpf: add support for packet data load instructions test/bpf: add new test cases for mbuf load instructions
bpf: x86 JIT support for packet data load instructions

 app/test/test_bpf.c                    | 504 +++++++++++++++++++++++--
 doc/guides/prog_guide/bpf_lib.rst      |  30 +-
 doc/guides/rel_notes/release_20_08.rst |   7 +
 lib/librte_bpf/bpf_exec.c              |  57 +++
 lib/librte_bpf/bpf_jit_x86.c           | 181 +++++++++
 lib/librte_bpf/bpf_validate.c          | 104 ++++-
 6 files changed, 850 insertions(+), 33 deletions(-)
Signature · 1 line
2.17.1