[PATCH 0/5] bpf enhancements
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 31 17:37:08 CET 2025
On Fri, 31 Oct 2025 11:39:54 +0000
Marat Khalili <marat.khalili at huawei.com> wrote:
> > -----Original Message-----
> > From: Stephen Hemminger <stephen at networkplumber.org>
> > Sent: Thursday 30 October 2025 17:34
> > To: dev at dpdk.org
> > Cc: Stephen Hemminger <stephen at networkplumber.org>
> > Subject: [PATCH 0/5] bpf enhancements
> >
> > 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.
>
> Thank you for doing this, I will try to have a look next week.
>
> About the overall approach to getting the BPF object file, I understand the clang part, but do we really need to convert object files to headers and then write them back? Could we just pass these object files around as test resources instead? Not that xxd was not present in most systems, but looks like extra work and complexity.
The problem is that it is hard to determine file location paths when functional test is run.
The test needs to not reference the build directory structure. And installing objects somewhere in build
requires more steps in meson. This was the easiest way which is what the cfgfiles test was already doing.
More information about the dev
mailing list