Article View: linux.kernel.netdev
Article #25411Re: [PATCH net-next v2 1/4] selftests: drv-net: kperf: support request-response tests
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 18:10
Date: Tue, 01 Dec 2026 18:10
71 lines
10531 bytes
10531 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 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
Technical Details
Message-ID:
<179614862670.3146.3546075545079468776@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375273-linux-kernel-netdev=dewy.ruReferences:
<20261130174609.314114-2-sdf.kernel@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375273-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev 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 Organization: Usenet Network Message-ID: <179614862670.3146.3546075545079468776@kernel.org> References: <20261130174609.314114-2-sdf.kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1784870"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uXyZtnL5JZBmlR98dOC2BatSONA= sha256:+mfV3tjS7QFiGBGT96zczhYOY9KPa9Qmx152EaZtvlA= sha1:6PINmQL5+sSLaJHFMhCwpI0qzms= sha256:6ddaZpQBrx8GQhGBfK2RErYL06G2216STaQsNrcGUFI= 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 1A9A611744F; Tue, 1 Dec 2026 21:10:57 +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 rrRF-tIDN09x; Tue, 1 Dec 2026 21:10:53 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375273-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 BE83E117451; Tue, 1 Dec 2026 21:10:43 +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 BB2742B6AC; Tue, 1 Dec 2026 18:10:34 +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=1796148634; b=tnqJn//3BOtd2D8TjmZjABe6O4pMYEWlJysDEtCtRiGzcTvM2jGbbZnHApuTgx/BfQ+q JegLOvWKpc7JI499TES3Rg7czO6A9WCVfxVGOI0r5OHigZBWWSVC7NuDfGQFVwqGqQyhV 320TafFPqgsjT8oVMsNMQIXGg74Ds2PfAtXHBMGSsGHDWm60owOLgc0/dsjvW/Yi394gO 3mC+LbXNvdwdTSTviLoW2W9f5wGPjn2nhwxVHLJY9fne9vMS56AUGMzkv2ViQ40Sg2fD7 jaESybWyKC8X7cRjT/ImSf4VqWUA1YH5PAHQ5jztv4L7z8hioAyhw7gdqVySaKL2tyg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796148634; 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=hhqn8vcyoEBC+B44PLo+TEsxi377uKm0Ga3wzOExzZQ=; b=v+ext/NocczNRk21bTZfavD66PzBOYbzNLGyTq4V8pvt5L3BoFTO9HSotEKkvhNHkadT K88FNXU0jGsbB0xLdfjRzWhnkRglsoZBmXXXadt/DfjDd2J85sC6+8hblp6+2TnayVUiD xk+Ut3H06HO7r7P8yHcEbhhbXobNttsRjqrOnUr8VQmyzE2NgyNp+UGR/z+uXDZIsz/ia /wcFc3jEbGnq1MLiBbI+iAJ4uMBmSuHIbAlZ/ezjnfL8nzCEW9JRUVoZgGTv135uGJlgB mTUSum/nNs0Xt4Xp8F1qL33U1TSetCIJHcDjek+/+P/HHoV3HDZu5JlYfy6/h/W7osQ== 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=m5h3vdZd; 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 860A2606A329; Tue, 1 Dec 2026 18:10:34 +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=m5h3vdZd 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=1796148628; b=ck6oQN6v4egcGNCpECwlovoSS09j7JZLW4QC5SeU9B3op7rgMBmkX/atNSECzaK06MeP HFuf07gkM1MCVui+0bef9flijTpzAv9OY5HuzEck/zRTvUV7vuyudQftIjkPT6x2f8AnH ap7Ljd8j+dJpYjhy7Ql9s2M4dNyKJEUC5Pnbh2IBXV2BG2zGLJQkfQ44Y7bscb17HXjxT U+q/ayeIF7QjxGObKNXYXxV2yL855Hee5/AXjDg50owFl5VAiL5jqAAPRatSLxcNwXdSd 2f7jV5twFI2SLGt/X7Yq0cMUgWS8Y4x08W7jAu4IqYc8L7XbeBmDe+xuxci6K/wQk7A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796148628; 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=hhqn8vcyoEBC+B44PLo+TEsxi377uKm0Ga3wzOExzZQ=; b=KUO3WsY3XVulJHw8UggR3HcZ//P8/jd6TuiPToEtQzrU5pf0KxuW1HJgoLzIXH7xhogL l6VkYy+19txXs2xtD23f6xV/zb/tuuRjcF2RJzRa60n3fvm5RZM76ibfLASp+Tz7TWkUE POa6aoYqqNGAPhVkIT5+F8Td4hlaTRZ1wrybhbSorIQe9TITjLEXHbqFm1+sJg1aYbUEe cA2Z4GXs3N53i4zRFwNIKHsQlOTLGmxVzaTwjkBgQRMlV6FkBLUx776pYfYppxk4Ay3aK gGLK7Ll9RvvUBXd1yCb6faU+r8zAgbTFC1V9HF8ll12gxEP/vEZyn3boKkZyEJYvfHg== 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=m5h3vdZd; 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 A2B34606A31A; Tue, 1 Dec 2026 18:10:28 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D0E31F00897; Tue, 1 Dec 2026 18:10:27 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796148627; bh=hhqn8vcyoEBC+B44PLo+TEsxi377uKm0Ga3wzOExzZQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=m5h3vdZdIO/eMXgN5cBTWpSIdwCZuuqy+2CKR+6qv/QWHSe0czsiP/Ml2vMWwqVHR Yu+JMatHa3n1nqEFEuqpFFMOid5dMpxdMccJwZoB2mj7+915LedhN9+r3RpnSdUZOu z+uhYTFyDu6bWDFuf8QTrN2zmm7H0l5m8XgggSPmVgr96UZGKXOFZbhX1G0mPYI0wt nqgdnd2ZDL6DXUeWT2VfJ6uSUABwa3Gs2RD7nm1rxOly7A6Fpt4EJTQ+pfRmEySPYT hLPs67nyTzbplfPWEjTH2ErLYjWQZkcXeO4o8qm6itp2UorM421LEqGrBhEWHwBK1k F1W5DsdWK30nw== X-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 X-In-Reply-To: <20261130174609.314114-2-sdf.kernel@gmail.com> 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