Skip to content

bpf: JIT and interpreter fixes

Stephen Hemminger dpdk-dev 7 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. v8 Latest10 patches 1 replyApplied
  2. v710 patches 1 replySuperseded
  3. v69 patches 5 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v59 patches4 repliesSuperseded
v47 patches4 repliesSuperseded
v36 patches6 repliesSuperseded
v26 patches1 replySuperseded

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/10bpf/x86: fix JIT encoding of fixed-width immediateslib/bpf/bpf_jit_x86.c+3 -30 replies
2/10test/bpf: add JSET test with small immediateapp/test/test_bpf.c+82 -00 replies
3/10bpf: mask shift count in interpreter per RFC 9669lib/bpf/bpf_exec.c+21 -100 replies
4/10bpf/arm64: mask shift count per RFC 9669lib/bpf/bpf_jit_arm64.c+10 -20 replies
5/10test/bpf: add test for large shiftapp/test/test_bpf.c+59 -00 replies
6/10bpf/arm64: fix offset type to allow a negative jumplib/bpf/bpf_jit_arm64.c+3 -10 replies
7/10Subject: [PATCH 07/10] bpf/arm64: add BPF_ABS/BPF_IND packet load supportlib/bpf/bpf_jit_arm64.c+187 -10 replies
8/10test/bpf: check that JIT was generatedapp/test/test_bpf.c lib/bpf/meson.build+10 -00 replies
9/10test/bpf: check that bpf_convert can be JIT'dapp/test/test_bpf.c+100 -710 replies
10/10bpf: fix uninitialized warninglib/bpf/bpf_validate.c+1 -10 replies

Reviews trailers per patch

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

PatchMarat KhaliliKonstantin Ananyev
1/10A-b A-b
2/10A-b A-b
3/10A-b A-b
4/10A-b A-b
5/10A-b A-b
6/10A-b A-b
7/10A-b A-b
8/10A-b A-b
9/10A-b A-b
10/10A-b

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

Read the v8 thread

Cover letter [PATCH v8 00/10] bpf: JIT and interpreter fixes

BPF fixes, mostly in the JIT backends. Bugzilla 1959 and 1427.

The existing JIT tests were never run on arm64, which is how the gaps here went unnoticed. The tests now fail rather than skip when a JIT backend exists but produces nothing.

Tested on x86_64 and arm64.

Christophe Fontaine (1):
bpf/arm64: fix offset type to allow a negative jump

Stephen Hemminger (9):
bpf/x86: fix JIT encoding of fixed-width immediates test/bpf: add JSET test with small immediate
bpf: mask shift count in interpreter per RFC 9669 bpf/arm64: mask shift count per RFC 9669
test/bpf: add test for large shift
Subject: [PATCH 07/10] bpf/arm64: add BPF_ABS/BPF_IND packet load
support
test/bpf: check that JIT was generated
test/bpf: check that bpf_convert can be JIT'd
bpf: fix uninitialized warning

 app/test/test_bpf.c     | 320 +++++++++++++++++++++++++++++++---------
 lib/bpf/bpf_exec.c      |  31 ++--
 lib/bpf/bpf_jit_arm64.c | 204 ++++++++++++++++++++++++-
 lib/bpf/bpf_jit_x86.c   |   6 +-
 lib/bpf/bpf_validate.c  |   2 +-
 lib/bpf/meson.build     |   2 +
 6 files changed, 476 insertions(+), 89 deletions(-)
Signature · 1 line
2.53.0