Article View: linux.kernel.netdev
Article #21995Re: [PATCH net-next 3/4] selftests: drv-net: add a kperf stream test
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 17:43
Date: Tue, 24 Nov 2026 17:43
84 lines
10695 bytes
10695 bytes
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
Technical Details
Message-ID:
<179554218364.3135.5016659919665552355@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370633-linux-kernel-netdev=dewy.ruReferences:
<20261123174120.505808-4-sdf@fomichev.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370633-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/4] selftests: drv-net: add a kperf stream test Date: Tue, 24 Nov 2026 17:43:03 +0000 Organization: Usenet Network Message-ID: <179554218364.3135.5016659919665552355@kernel.org> References: <20261123174120.505808-4-sdf@fomichev.me> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="4193686"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1GuYe6ViJJMx85ywkX+frIX6hFg= sha256:I8TEWFaprl127JeMOWPbpdrbvn27WCh3N0Ek5v4VtRg= sha1:vnmf67vtnRNeRaBr2meTVCnEjXc= sha256:xKjUhlLV6f+O8m7jZTVlYJglK7SREo8YPgl+VRVxDYA= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B88EF125E22; Tue, 24 Nov 2026 20:43:22 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rHBr8jJE_-xR; Tue, 24 Nov 2026 20:43:18 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-370633-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 8F76D125E2D; Tue, 24 Nov 2026 20:43:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id DF85429432; Tue, 24 Nov 2026 17:43:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795542185; b=RpBCTZmwmITXyABWBL0wEss2oLk1qvv8xcEXfxTKLbk9RIxunW9R980Qdco+rwTXCYah G9QdVJFitkcIb2IJ4dHxPQzcpJS754bOUeAbn7k1OcGadl/K3369ufuNqnsMgmOtqf/MX T1EHU/IK/KYv4tJpM/lkjygwAOaeF/uuIAttAVf3uOlofd8Rh030EWdfu9e6fgi5E9VE9 whxwh3RPFFp19ah9PfJC4GmTgGQd8O36Y/J7/9NxDrfuS5TDn5DN7MY2+3cY8GZfE4AFG 2i1Qsc4PbySas6qeQQ9eB196Bine7QqJVJ9yuIzx0Ur9eHQ0zkcRwBH6yJ/NDUucgTg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542185; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=h1h4yHjmlBs3vGOFXi6iqSSsWYYmwiIUlQRsrgTKDBk=; b=YDsXvnfQTevsWfvdCUJO6X98ADXc10r0YzAkJte+QLBAIzTf5j+1tUVSNmdU5rEOAdgM 8YjEr/SoTSpoYLIkMTmM77eKYTiXlfLcmDHVJittMtrBVmCO6ESDpXGvoAcH5ZTYa1JVL knp/hv+pteKTzZw/hpDvLujhWBGREd9EyKP51P8SjgEfbcrlddFl+pTmqCVZX3ygyp59c rLmOcMuHsVuTSwlsuhbIfAuKisfNbYkicROAqmvgkFJ8WZtTFaUz5H18sC8bWLeB7W98B RkuKLmWMscJDI8Qqlzo8XsXqxw2xKkRkUNY044a81z0c4KxWs/PKAi7f2k3d4HMoZjQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ps3KWkG3; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89F1D606A337; Tue, 24 Nov 2026 17:43:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ps3KWkG3 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795542184; b=UcKVB7Gfppm0hFZ7HVAkbQqIweavpSQ4eavvOnwWRQE869ffBsPty/jqpKMCGX2onT1b Dr5LSF/Z0R7JvNses8M3sw/XAT0um2R3c/Fae+UVQG0R3ccQ5719jC24Kbx5nGadMEUej hRhBBvfxquwPVTXHKAuuih/bo7Oy51ZuftAcADMom9jU6nRlSK9xG7XjvZS6mbT8QxPOa jXanph5dQrHFqtyFH0gwJdXK7/jPkOEY8y+TC2jp8N8k5XxBQJgBAZKpTRmEn8t1Et5VF Xa2XLJRkP8kybYddxyB7XllDx3O1CCD3VSau8cD+92pailuunICUt8r9kkjfV6jVucQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542184; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=h1h4yHjmlBs3vGOFXi6iqSSsWYYmwiIUlQRsrgTKDBk=; b=B6N3VBC+Il0lJZ6MPQYLifaUcsSukwPHlkXjTFh+zPscIQozIp3mkmpd4QGzYbB2HQY6 N8x4L27nrxKyL3j4R+9uYYthz4dfAQJGNS+wXX96HhKZF4eoZwCa5QM7sK4RMHXqy1gmq HmNH7cZcsKVBUXk4kfloCw/1wclQ5IZS+tiCkBh9hUMPnHTs5u9btV7AunpYkGOPeaLVk Hhskn3IJrtRF6kz9gWSEeMU4zxjQRDOORFb+GHALTvRl3RAopejqKeVFvIQBjWVGY5WvG 3nDi9kRujuD3kwJJZGc6Vy1w1uWZDZm9sxahCExoAvrbngDI+ETfTd8Nein6qrhN6ZQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ps3KWkG3; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB3D7606A32A for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 17:43:04 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E871F000C0; Tue, 24 Nov 2026 17:43:04 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795542184; bh=h1h4yHjmlBs3vGOFXi6iqSSsWYYmwiIUlQRsrgTKDBk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Ps3KWkG3XHtXCF7cxxhNPGQjQJ76eJddx6cnN6bxZdZOUrEuQKX0v9mQaLzFMMoi6 pctTi0DAIDM8Nim0YRkbRIwUBDqnrUcEzvgfQGL7X2cxRVyo+I+fQaZRGYhssyJj+9 RsKIFTNIQqIFI2Cdn+tAwr+3H/erDmQMqn/BS8f74DFFqlylcp/jFzKSRLbs28exwR K5Q/jt4zVSbvNnqSaKbdMhW6sUcNDtVtvVyKvxQW0gN10LfX+NmwsfPtSVhNFgpdbc WEll5w/qQ3tUU4RQy80uHvr/dzJ05T5ukwhX+rulF2W7TpQrjky2dz+8Q6CmUJZh4e hmnwxBptWpkKw== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com X-In-Reply-To: <20261123174120.505808-4-sdf@fomichev.me> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list