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
Subject: Re: [PATCH net-next 3/4] selftests: drv-net: add a kperf stream test
Date: Tue, 24 Nov 2026 17:43:03 +0000 [thread overview]
Message-ID: <179554218364.3135.5016659919665552355@kernel.org> (raw)
In-Reply-To: <20261123174120.505808-4-sdf@fomichev.me>
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] In tools/testing/selftests/drivers/net/perf/stream.py, the
"zerocopy" variant of tcp() passes ["--msg-zerocopy", "--zerocopy-rx"]…
- [Low] The commit author address (Stanislav Fomichev
<sdf.kernel@gmail.com>) does not match the only Signed-off-by…
--
selftests: drv-net: add a kperf stream test
This adds stream.py, which uses kperf to measure the throughput of one TCP
connection. It runs a copy variant and a zerocopy variant (MSG_ZEROCOPY on
the sender, TCP_ZEROCOPY_RECEIVE on the receiver), and reports the result
through ksft_metric().
> Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
[Severity: Low]
This isn't a bug, but the Author: address (sdf.kernel@gmail.com) does not
match the Signed-off-by: address (sdf@fomichev.me). checkpatch reports this
as FROM_SIGN_OFF_MISMATCH. The other patches in the series have the same
mismatch.
> diff --git a/tools/testing/selftests/drivers/net/perf/stream.py b/tools/testing/selftests/drivers/net/perf/stream.py
> new file mode 100755
> index 0000000000000..4ed9d64dfa320
> --- /dev/null
> +++ b/tools/testing/selftests/drivers/net/perf/stream.py
> @@ -0,0 +1,40 @@
[ ... ]
> +@ksft_variants([
> + KsftNamedVariant("copy", []),
> + KsftNamedVariant("zerocopy", ["--msg-zerocopy", "--zerocopy-rx"]),
[Severity: Medium]
Does the zerocopy variant exercise TCP_ZEROCOPY_RECEIVE page mapping on a
default NIC configuration?
tcp_zerocopy_receive() only maps frags that pass can_map_frag() in
net/ipv4/tcp.c:
if (skb_frag_size(frag) != PAGE_SIZE || skb_frag_off(frag))
return false;
Without header-data split and HW GRO, payloads usually sit in sub-page
frags at non-zero offsets. In that case nothing gets mapped and the data is
copied, or kperf fails, depending on how it handles this.
The commit message says the test runs "with the same settings as devmem.py
otherwise". However, devmem.py's kperf() turns on rx-gro-hw through
_enable_hw_gro() and configures the rings with:
"tcp-data-split": "enabled",
It also sets hds-thresh to 0 where the driver supports it. stream.py does
none of this.
The only output of tcp() is ksft_metric(), and metrics do not affect the
result. So nothing shows whether zerocopy receive actually took place, and
the zerocopy number depends on the driver's default HDS setting.
Could the same HDS and HW GRO setup from devmem.py be applied for this
variant, with a skip when it can't be enabled?
> +])
> +def tcp(cfg, mode_args) -> None:
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123174120.505808-1-sdf%40fomichev.me
next prev parent reply other threads:[~2026-11-24 17:43 UTC|newest]
Thread overview: 9+ 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-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-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 [this message]
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=179554218364.3135.5016659919665552355@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf.kernel@gmail.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