Netdev List
 help / color / mirror / Atom feed
From: Stanislav Fomichev <sdf.kernel@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com
Subject: Re: [PATCH net-next 1/4] selftests: drv-net: kperf: support request-response tests
Date: Wed, 25 Nov 2026 09:10:59 -0800	[thread overview]
Message-ID: <awcWo28PqdP3HQ/g@devvm16445.scu0.facebook.com> (raw)
In-Reply-To: <179554218093.3135.7909843046565299383@kernel.org>

On 11/24, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
> 
> Low priority / nit picks for your consideration:
> 
> - [Low] The author and sign-off addresses do not match.
> - [Low] In KperfRunner.parse()
>   (tools/testing/selftests/drivers/net/lib/py/kperf.py), the commit…
> 
> --
> 
> selftests: drv-net: kperf: support request-response tests
> 
> This commit adds an optional transaction rate and latency percentiles to
> KperfResult for request-response tests. KperfRunner.parse() takes these
> values from the Source section of the kperf client output.
> 
> > Author: Stanislav Fomichev <sdf.kernel@gmail.com>
> > [ ... ]
> > Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
> 
> [Severity: Low]
> This isn't a bug, but the author address and the Signed-off-by address
> are different. The author is sdf.kernel@gmail.com and the only sign-off
> uses sdf@fomichev.me.
> 
> checkpatch.pl reports this as FROM_SIGN_OFF_MISMATCH.
> 
> The other patches in the series have the same mismatch:
> 
>   selftests: drv-net: add a closed-loop request-response test
>   selftests: drv-net: add a kperf stream test
>   selftests: drv-net: remove the iperf performance test
> 
> Could the author be changed to sdf@fomichev.me, or a Signed-off-by be
> added with the gmail address?
> 
> > diff --git a/tools/testing/selftests/drivers/net/lib/py/kperf.py b/tools/testing/selftests/drivers/net/lib/py/kperf.py
> > index 8ee8c5ba2ff7b..98d27d83dee20 100644
> > --- a/tools/testing/selftests/drivers/net/lib/py/kperf.py
> > +++ b/tools/testing/selftests/drivers/net/lib/py/kperf.py
> 
> [ ... ]
> 
> > @@ -149,9 +165,20 @@ class KperfRunner:
> >                  if (section, direction) in (("Source", "Tx"),
> >                                               ("Target", "Rx")):
> >                      throughput[section].append(float(value))
> > +            if section != "Source":
> > +                continue
> > +
> > +            # Request-response tests run a single flow, take the first one
> > +            # and ignore the rest
> > +            match = _RPS_RE.search(line)
> > +            if match:
> > +                rr.setdefault("rate", float(match.group(1)))
> > +            for name, value in _LAT_RE.findall(line):
> > +                key = "lat_max" if name == "max" else name
> > +                rr.setdefault(key, float(value))
> 
> [Severity: Low]
> Does this really keep the first flow? The comment above says so, and so
> does the commit message:
> 
>   Request-response tests run a single flow; of more, the first
>   one is kept.
> 
> KperfRunner.parse() doesn't track where one flow ends and the next
> begins. It scans every line in the Source section. Each RPS and latency
> match is stored with rr.setdefault(key, ...), so what you get is the
> first occurrence of each metric. That is not the same as the metrics of
> the first flow.
> 
> Suppose the first flow's lines don't include every key (RPS, p25 through
> p9999, max). Or suppose kperf prints a summary RPS or latency line before
> the per-flow lines. Could one KperfResult then mix values from different
> flows, or from a summary line?
> 
> The KperfResult docstring also calls these values the source's rate and
> latencies. It doesn't mention that each one is taken per key.
> 
> rr.py is the only in-tree caller, and it passes "--num-connections 1", so
> the series as submitted doesn't hit this. Would it be worth stopping
> explicitly at the end of the first flow? The other option is to describe
> the per-key behaviour in the comment and in the KperfResult docstring.

"First reported by kperf", and we want callers to pass --num-connections
1, yes.

  reply	other threads:[~2026-11-25 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 17:41 [PATCH net-next 0/4] selftests: replace iperf with kperf and add RR Stanislav Fomichev
2026-11-23 17:41 ` [PATCH net-next 1/4] selftests: drv-net: kperf: support request-response tests Stanislav Fomichev
2026-11-24 17:43   ` netdev-bot+sashiko
2026-11-25 17:10     ` Stanislav Fomichev [this message]
2026-11-23 17:41 ` [PATCH net-next 2/4] selftests: drv-net: add a closed-loop request-response test Stanislav Fomichev
2026-11-24 17:43   ` netdev-bot+sashiko
2026-11-25 17:12     ` Stanislav Fomichev
2026-11-23 17:41 ` [PATCH net-next 3/4] selftests: drv-net: add a kperf stream test Stanislav Fomichev
2026-11-24 17:43   ` netdev-bot+sashiko
2026-11-25 17:12     ` Stanislav Fomichev
2026-11-23 17:41 ` [PATCH net-next 4/4] selftests: drv-net: remove the iperf performance test Stanislav Fomichev
2026-11-24 17:43   ` netdev-bot+sashiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awcWo28PqdP3HQ/g@devvm16445.scu0.facebook.com \
    --to=sdf.kernel@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox