Article View: linux.kernel.netdev
Article #21993Re: [PATCH net-next 1/4] selftests: drv-net: kperf: support request-response tests
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 17:43
Date: Tue, 24 Nov 2026 17:43
98 lines
11613 bytes
11613 bytes
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.
>
> if not all(throughput.values()):
> raise ValueError("incomplete kperf result")
>
> return KperfResult(sum(throughput["Source"]),
> - sum(throughput["Target"]))
> + sum(throughput["Target"]), **rr)
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123174120.505808-1-sdf%40fomichev.me
Technical Details
Message-ID:
<179554218093.3135.7909843046565299383@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!feeder1.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-370631-linux-kernel-netdev=dewy.ruReferences:
<20261123174120.505808-2-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!feeder1.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-370631-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/4] selftests: drv-net: kperf: support request-response tests Date: Tue, 24 Nov 2026 17:43:00 +0000 Organization: Usenet Network Message-ID: <179554218093.3135.7909843046565299383@kernel.org> References: <20261123174120.505808-2-sdf@fomichev.me> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="4193584"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:oB1inc16GVrbIXS94KRQNphIwn4= sha256:8AuaFmrkopP+mAP0ftTWccNXSzf4eWRO3+23c3T9BR0= sha1:p/sKHiWaHgez+eWvWCkexdx9VTc= sha256:IhGfJENwhb9XPjwBLkv2wpziEUqwUn0ZuiKIT5e0v+M= 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 12DBB125E2F; Tue, 24 Nov 2026 20:43:18 +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 wlsUd4LQ9ynm; Tue, 24 Nov 2026 20:43:14 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370631-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id C1925125E22; Tue, 24 Nov 2026 20:43:05 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 468A1394C4; Tue, 24 Nov 2026 17:43:04 +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=1795542183; b=RlFa1ckk1SYPf6RuWa6HaD7Nbn/pItfzpz5zhrB/xkWWX9lAdmSa8g9hNB+r4sOxMbxZ b+rCnQ2/k2r9S0yNJuvbZC0+MxOYHbAbSROiOFpJ5C+wRZ30yYUTmJDhN6jgg48oZ/hF+ wx29dkR/D4kWQcqc9MctZBGnrSMx9U4O2JpeWV0XEzugs7IYMOtl5m6aY4JBgSiKdNS9j c4xbF8OP/087qhJ4h4MhcUh439gmGVobKm+XPHukTny/cfE4KH4OjyvMs3aE3Wvq006fQ xGgT/dMBN9BDBV9+GlOWHY3XO/sb/F/ezXouZGvcZr2EZNgWofKQ050DavQYBvv0OHA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542183; 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=rgu3DswXGXqLcQ4n55HY0sWzcCGdRSeDpNg/dQ3v/bM=; b=3LnJuZejkJFrANmHV52M48JU13SE+YfnLP+tK0v4H6Tdq4QBuGZhmNw0LgSEJBvrAyLd j6qObYFqMhtYTRJtZThBQ3h85kBIqRxr8A7biBiJ/uRsPEfoz6sz/Q/53i+1k24UL+uJ3 U2QLlK0Pydqqvww23I+5XCSGHNf77QS/td0BKw/A6yzKmvadcWrPPahMooro9FtNGEDP1 SLQuR7LHNSupEvkVYSF7wgqFGXorB5ZV+pizW5PszWieMzEEEoZNETP1/xSO5nkv+FBIg NyldtP0mPjwSznlTArjIum9vPh57+B2c+R1M1YctrXHaocaKxamvAELuP17WPStFlpw== 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=P7RwYBLf; 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 7AE8F606A32E; Tue, 24 Nov 2026 17:43:03 +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=P7RwYBLf 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=1795542182; b=eaEwaX30N4c6/0NgajcUtK9pj/N2vyrxmt472LjZube+fXofsa+kd+TT8T7mRDNtWDY9 sMDX0wVUQR9XB3REg/FWrRKKHypaUK1TC6qjZ2rCKcShtgypOypVgdx+dcr+b70tO/8OB 7NqpPPQ9YwSO6P1uHnRr2eLRb4hqPnBYtmTDqMxCXCdugjvfw5GJwvytbaXNaDx1Zc8ZZ DbMtIEe6rgb4xoYBSpiafsFcrD01ahQCYQ6wR7rHrP7aEqrbq0sIzHlp7eBsQijMOH/sF 6JzwuanGNiq1i/JRWtwkLuKiD7+7/16GWcx+g2EE7PkgYZmdHjOREitlQhdd5wyklCQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795542182; 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=rgu3DswXGXqLcQ4n55HY0sWzcCGdRSeDpNg/dQ3v/bM=; b=Oes/oVbGWEuAYuYtgTvVdOkq8H2tLg97dzNBWwXyWdToZLx/8TcNWXdYhpzrCtZec/9J qkl/lmXy9hwziBxj9LpRyVAOOwESvhQW0mvQvO3tCU8Q0pzTqhVp8U0LQQtKWpsasAMpB SKtz6kCuJ044aX8mptN7MUkI9Yho/VmHui88vvXds5PsRFXMzBeV6FZxesiJVaWHVILu0 TP7psGiHJAPfcacQqVojwFHEOEmlbg7NXm6Q5omP3R1zukRDMCjBtFDxxfmBILPE77Oce j6zMl92mIw9Fcqnf9i7BBkZCD7/9SQhxvzoyOFb45ZyrpfMBmRUfv6HPXN7ofhP7DBA== 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=P7RwYBLf; 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 99CEA606A326 for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 17:43:02 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D2EC1F000C0; Tue, 24 Nov 2026 17:43:01 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795542181; bh=rgu3DswXGXqLcQ4n55HY0sWzcCGdRSeDpNg/dQ3v/bM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=P7RwYBLfqo+1RJKntRXZFC0NBor6uHFtyNvIJGDWL5Yci9EnxJ/JQTouLKPccF4vv NAtqVxoQO93hE5FzINLzH0gU++QeYIKHAIvr3ZI92kvFxcOi9NuJZROEOmwoBivqDp nUpjASL8RyDIUe+lwOiPJvo6XHNFX8iM59lIdK892pG228F7dmxQq7S5VFZlslEgZk opn/++RPFGNPj0n9JcL2tT0g/H48Rt4jjdAPZiNp4hGIAy02Plln+NXL956l4J1EmG QwF+sl1yAikjsc69h89qMysD6aIK44rR7dJTRJVm5OO5geDagc1VLBfQddqeGyAUS7 6b10wa5hNdTvg== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com X-In-Reply-To: <20261123174120.505808-2-sdf@fomichev.me> X-sashiko-severity: Low 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