[PATCH v6 0/2] BPF tests

Stephen Hemminger stephen at networkplumber.org
Tue Nov 11 23:55:45 CET 2025


Add missing tests for BPF file loading functions.
This is subset of earlier patch.

v6 - rebase to main
   - make sure that -ENOTSUP is handled
   - remove duplicate includes
   - combine all of the elf tests into one test instance

Stephen Hemminger (2):
  bpf: add a test for BPF ELF load
  bpf: add test for Rx and Tx filtering

 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      | 476 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 635 insertions(+)
 create mode 100644 app/test/bpf/filter.c
 create mode 100644 app/test/bpf/load.c
 create mode 100644 app/test/bpf/meson.build

-- 
2.51.0



More information about the dev mailing list