Skip to content

BPF cleanup and tests

Stephen Hemminger dpdk-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 7 repliesIn review
  2. v45 patches 13 repliesSuperseded
  3. v35 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches0 repliesSuperseded
v15 patches2 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bpf: add allocation annotations to functionslib/bpf/rte_bpf.h+8 -30 replies
2/5bpf: use bulk free on filtered packetslib/bpf/bpf_pkt.c+1 -20 replies
3/5bpf: add a test for BPF ELF loadapp/test/bpf/load.c app/test/bpf/meson.build app/test/meson.build +1 more+261 -05 replies
4/5bpf: add test for Rx and Tx filteringapp/test/bpf/filter.c app/test/bpf/meson.build app/test/test_bpf.c+361 -01 reply
5/5bpf: replace use of VLAlib/bpf/bpf_pkt.c+6 -60 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKonstantin AnanyevMarat Khalili
SeriesA-b A-b A-b A-b Series-tested-by
1/5A-b R-b
2/5A-b R-b
3/5A-b
4/5A-b
5/5A-b R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/5] BPF cleanup and tests

This is a series of fixes and tests for BPF functionality. The new tests for Tx and Rx filtering require the infrastructure to build a bpf program (clang) and the tool to convert object file to header (xxd). If missing the test will get skipped.

It is disappointing that there were no examples or tests when the code was submitted.

v5 - review feedback
make it clear that load test is mirroring previous test and check the result.

v4 - review feedback - use alloca instead of burst to remove dependency on VLA

v3 - do not depend on xxd -n flag which is not present on older versions

Stephen Hemminger (5):
bpf: add allocation annotations to functions
bpf: use bulk free on filtered packets
bpf: add a test for BPF ELF load
bpf: add test for Rx and Tx filtering
bpf: replace use of VLA

 app/test/bpf/filter.c    |  53 +++++
 app/test/bpf/load.c      |  51 +++++
 app/test/bpf/meson.build |  53 +++++
 app/test/meson.build     |   2 +
 app/test/test_bpf.c      | 463 +++++++++++++++++++++++++++++++++++++++
 lib/bpf/bpf_pkt.c        |  15 +-
 lib/bpf/rte_bpf.h        |  11 +-
 7 files changed, 637 insertions(+), 11 deletions(-)
 create mode 100644 app/test/bpf/filter.c
 create mode 100644 app/test/bpf/load.c
 create mode 100644 app/test/bpf/meson.build
Signature · 1 line
2.51.0