From: netdev-bot+sashiko@kernel.org
To: sdf.kernel@gmail.com
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, andrew+netdev@lunn.ch,
edumazet@kernel.org, shuah@kernel.org, sdf@fomichev.me,
bjorn@kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v2 1/4] selftests: drv-net: kperf: support request-response tests
Date: Tue, 01 Dec 2026 18:10:26 +0000 [thread overview]
Message-ID: <179614862670.3146.3546075545079468776@kernel.org> (raw)
In-Reply-To: <20261130174609.314114-2-sdf.kernel@gmail.com>
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 docstring of KperfResult in
tools/testing/selftests/drivers/net/lib/py/kperf.py reads "They should…
--
selftests: drv-net: kperf: support request-response tests
This commit extends KperfResult with the transaction rate of
request-response tests. With --time-stats 2 it also records the latency
percentiles and maximum, as seen by the source. parse() keeps the first
value kperf reports for each of these metrics.
> Request-response tests should run one connection; of more,
> the first value kperf reports for each metric is kept.
This isn't a bug, but "of more" in the commit message doesn't read
correctly. Was "if more are run" intended?
> diff --git a/tools/testing/selftests/drivers/net/lib/py/kperf.py b/tools/testing/selftests/drivers/net/lib/py/kperf.py
> index 8ee8c5ba2ff7b..3092d3c56b7f7 100644
> --- a/tools/testing/selftests/drivers/net/lib/py/kperf.py
> +++ b/tools/testing/selftests/drivers/net/lib/py/kperf.py
[ ... ]
> @@ -13,14 +15,29 @@ from lib.py import cmd, ksft_pr, rand_port, wait_port_listen
>
> _SECTION_RE = re.compile(r"==\s+(Source|Target)\b")
> _RATE_RE = re.compile(r"\b(Tx|Rx)\s*([0-9]+(?:\.[0-9]+)?)\s+Gbps\b")
> +_RPS_RE = re.compile(r"\b([0-9]+(?:\.[0-9]+)?) RPS\b")
> +_LAT_RE = re.compile(
> + r"\b(p25|p50|p90|p99|p999|p9999|max):([0-9]+(?:\.[0-9]+)?)us\b")
>
>
> @dataclass
> class KperfResult:
> - """Aggregate throughput (Gbps) of both endpoints."""
> + """Aggregate throughput (Gbps) of both endpoints. Request-response tests
> + also tell the rate (per second) of the source, which sends the requests,
> + and with --time-stats 2 its latencies (usec). They should run one
> + connection: of more, the first value kperf reports for each is kept.
[Severity: Low]
This isn't a bug, but the docstring has the same "of more" wording. This
sentence is the only place in the code that documents the multi-connection
behavior.
In parse(), rr.setdefault() keeps only the first connection's rate and
latency values, while throughput is summed across all connections.
Would something like this be clearer?
If more connections are run, only the first value kperf reports for
each metric is kept.
> + """
>
> source_throughput: float
> target_throughput: float
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130174609.314114-1-sdf.kernel%40gmail.com
next prev parent reply other threads:[~2026-12-01 18:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:46 [PATCH net-next v2 0/4] selftests: replace iperf with kperf and add RR Stanislav Fomichev
2026-11-30 17:46 ` [PATCH net-next v2 1/4] selftests: drv-net: kperf: support request-response tests Stanislav Fomichev
2026-12-01 18:10 ` netdev-bot+sashiko [this message]
2026-11-30 17:46 ` [PATCH net-next v2 2/4] selftests: drv-net: add a closed-loop request-response test Stanislav Fomichev
2026-12-01 18:10 ` netdev-bot+sashiko
2026-11-30 17:46 ` [PATCH net-next v2 3/4] selftests: drv-net: add a kperf stream test Stanislav Fomichev
2026-12-01 18:10 ` netdev-bot+sashiko
2026-11-30 17:46 ` [PATCH net-next v2 4/4] selftests: drv-net: remove the iperf performance test Stanislav Fomichev
2026-12-01 8:07 ` [PATCH net-next v2 0/4] selftests: replace iperf with kperf and add RR Björn Töpel
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=179614862670.3146.3546075545079468776@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=bjorn@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf.kernel@gmail.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
/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