[PATCH v2 0/5] BPF enhancements

Stephen Hemminger stephen at networkplumber.org
Fri Oct 31 17:41:44 CET 2025


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.

v2 - add more checks in rx test
     fix headers 

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: remove use of VLA

 app/test/bpf/meson.build       |  53 ++++
 app/test/bpf/test_bpf_filter.c |  53 ++++
 app/test/bpf/test_bpf_load.c   |  62 +++++
 app/test/meson.build           |   2 +
 app/test/test_bpf.c            | 452 +++++++++++++++++++++++++++++++++
 lib/bpf/bpf_pkt.c              |  84 +++---
 lib/bpf/meson.build            |   2 -
 lib/bpf/rte_bpf.h              |  11 +-
 8 files changed, 678 insertions(+), 41 deletions(-)
 create mode 100644 app/test/bpf/meson.build
 create mode 100644 app/test/bpf/test_bpf_filter.c
 create mode 100644 app/test/bpf/test_bpf_load.c

-- 
2.51.0



More information about the dev mailing list