[PATCH 0/3] bpf: simple tests and fixes
Marat Khalili
marat.khalili at huawei.com
Mon Nov 10 16:30:43 CET 2025
Add simple unit-style tests for rte_bpf_load, and fix some minor
discovered bugs.
Create new source file for new tests since app/test/test_bpf.c was
growing rather large, and tests there look more like functional rather
than unit ones.
Marat Khalili (3):
bpf: fix signed shift overflows in ARM JIT
bpf: disallow empty program
bpf: make add/subtract one program validate
app/test/meson.build | 1 +
app/test/test_bpf_simple.c | 189 +++++++++++++++++++++++++++++++++++++
lib/bpf/bpf_jit_arm64.c | 188 ++++++++++++++++++++----------------
lib/bpf/bpf_load.c | 2 +-
lib/bpf/bpf_validate.c | 28 ++++--
5 files changed, 318 insertions(+), 90 deletions(-)
create mode 100644 app/test/test_bpf_simple.c
--
2.43.0
More information about the dev
mailing list