[PATCH] test-flow-perf: Enable to build on Windows

Andre Muezerie andremue at linux.microsoft.com
Tue Sep 2 22:53:41 CEST 2025


On Tue, Sep 02, 2025 at 10:11:05AM +0200, David Marchand wrote:
> Hello,
> 
> On Sat, 30 Aug 2025 at 02:23, Andre Muezerie
> <andremue at linux.microsoft.com> wrote:
> >
> > On Fri, Aug 29, 2025 at 03:04:10PM +0200, David Marchand wrote:
> > > Hello,
> > >
> > > On Tue, 5 Aug 2025 at 22:00, Andre Muezerie
> > > <andremue at linux.microsoft.com> wrote:
> > > >
> > > > This patch fixes some issues which were preventing this test to be
> > > > built on Windows:
> > > >
> > > > - Remove VLAs (not supported by msvc).
> > > > - Replace strsep() (which is not natively available on Windows)
> > > >   with strtok_r().
> > > > - Remove the "thousands" separator from printf() calls as it is
> > > >   not available on Windows.
> > >
> > > Can we use rte_size_to_str() instead?
> > >
> >
> > I considered doing that, but I thought that since the app is printing deltas it
> > could be better to print the exact numbers instead of some approximation like
> > "1.02 k" which could possibly make debugging harder.
> >
> > If you strongly believe that rte_size_to_str() should indeed be used here I can
> > make the change.
> >
> > What are your thoughts about this?
> 
> No strong opinion: just that we introduced this rte_size_to_str() for
> this "thousands" separator stuff.
> I don't mind merging as is, and I did not hear from Wisam, so I guess
> this is fine.
> 
> 
> -- 
> David Marchand

I don't have a strong opinion on this either, but I remember that
when rte_size_to_str() got introduced one of the reviewers mentioned
that while the new API would be nice for # of bytes or # of packets
transmitted, they would prefer to see the exact number of bytes for
the deltas. That's the reason I took this approach. I'm assuming
others are fine with this too if we don't hear back.

Andre Muezerie


More information about the dev mailing list