On Fri, 31 Oct 2025 11:39:54 +0000
Marat Khalili <[email protected]> wrote:

> > -----Original Message-----
> > From: Stephen Hemminger <[email protected]>
> > Sent: Thursday 30 October 2025 17:34
> > To: [email protected]
> > Cc: Stephen Hemminger <[email protected]>
> > 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.

Reply via email to