๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22685

Re: [PATCH net-next 2/4] selftests: drv-net: add a closed-loop request-response test

#22685
From: Stanislav Fomichev
Date: Wed, 25 Nov 2026 17:12
74 lines
13816 bytes
On 11/24, netdev-bot+sashiko@kernel.org wrote:
> 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] rr.py's closed_loop()/_report() pass the request-response
>   fields of KperfResult (rate, p25, p50, p90, p99, p999, p9999, lat_max)โ€ฆ
> - [Low] The commit author is 'Stanislav Fomichev <sdf.kernel@gmail.com>',
>   but the only Signed-off-by is 'Stanislav Fomichev <sdf@fomichev.me>'.
> 
> --
> 
> selftests: drv-net: add a closed-loop request-response test
> 
> This adds rr.py to the drv-net perf selftests. It runs kperf over one
> connection with 1 KiB requests and responses, then reports the
> transaction rate and kperf's latency percentiles and maximum as ksft
> metrics.
> 
> > Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
> 
> [Severity: Low]
> This isn't a bug, but the author address and the sign-off address do
> not match:
> 
>   Author: Stanislav Fomichev <sdf.kernel@gmail.com>
>   Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
> 
> The body has no in-body From: line either, so checkpatch will report
> FROM_SIGN_OFF_MISMATCH. The other patches in the series have the same
> mismatch, including "selftests: drv-net: kperf: support
> request-response tests", "selftests: drv-net: add a kperf stream test"
> and "selftests: drv-net: remove the iperf performance test".
> 
> Could the author and the Signed-off-by use the same address?
> 
> > diff --git a/tools/testing/selftests/drivers/net/perf/rr.py b/tools/testing/selftests/drivers/net/perf/rr.py
> > new file mode 100755
> > index 0000000000000..1dff0c4763909
> > --- /dev/null
> > +++ b/tools/testing/selftests/drivers/net/perf/rr.py
> 
> [ ... ]
> 
> > +def _report(result) -> None:
> > +    ksft_metric("rate", result.rate, goal="higher")
> > +    ksft_metric("latency_p25", result.p25, goal="lower")
> > +    ksft_metric("latency_p50", result.p50, goal="lower")
> > +    ksft_metric("latency_p90", result.p90, goal="lower")
> > +    ksft_metric("latency_p99", result.p99, goal="lower")
> > +    ksft_metric("latency_p999", result.p999, goal="lower")
> > +    ksft_metric("latency_p9999", result.p9999, goal="lower")
> > +    ksft_metric("latency_max", result.lat_max, goal="lower")
> > +
> > +
> > +def closed_loop(cfg) -> None:
> > +    """Measure back-to-back transactions."""
> > +    with KperfRunner(cfg) as runner:
> > +        _report(runner.run(RR_ARGS))
> 
> [Severity: Medium]
> Can closed_loop() pass even though it never measured a rate or any
> latency?

Yes, it can pass. The (future) regression tracking will handle "no metrics
reported" situation.
Technical Details
Message-ID: <awcW5SPYScaQkCgc@devvm16445.scu0.facebook.com>
Path: mbox-mo1.pugleaf.net!srv.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-371557-linux-kernel-netdev=dewy.ru
References: <20261123174120.505808-3-sdf@fomichev.me> <179554218233.3135.9733987891875533759@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-371557-linux-kernel-netdev=dewy.ru
From: sdf.kernel@gmail.com (Stanislav Fomichev)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 2/4] selftests: drv-net: add a closed-loop
 request-response test
Date: Wed, 25 Nov 2026 09:12:05 -0800
Organization: Usenet Network
Message-ID: <awcW5SPYScaQkCgc@devvm16445.scu0.facebook.com>
References: <20261123174120.505808-3-sdf@fomichev.me>
 <179554218233.3135.9733987891875533759@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="263645"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qgdpMGc3GWE0onlhF77WvsSdBU8= sha256:mgYqrKyr1wtQJBZ/2M2W3eXeEfa+8rPPKMJCukPpU/U=
	sha1:NuYHj/8BF+1dD6+YMRf6OSWwwCI= sha256:+xyNX1XWI8htilEKfRzURE2HadOC1AUONTBHsyGi3z8=
Content-Disposition: inline
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 0110C125E8A; Wed, 25 Nov 2026 20:29:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Status: No, score=-3.148 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=gmail.com
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 JN-yrvsDHE8l;
	Wed, 25 Nov 2026 20:29:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-371557-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 0516B125E82; Wed, 25 Nov 2026 20:29:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id DDA8B60A724; Wed, 25 Nov 2026 17:23:20 +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=1795627397;
	b=xuCYvqlUE+Yw+SBoj/v0TDJR7g62hETlryg9OgQwFBScNfbNucqQEtgKIfe09/koFc3t
	 4h0s3sB1le++Hb8G71eE5mTHyjz1e2DUvD8qicS8FX5qEolAUGDMMnqT9fdeXZuJub9lq
	 MEGnQsvB6c5+NUC19yatgBres3fzz23tfY6uV+TThaHeLS1wGQ2OVKuOI7kF52eakTJ9q
	 rbjwdRhSBmjtWLBmDn2J90VoG8I2XBLj5WO5Pf/+5wqk47OntTmIgweyeuI19iMpQDaL1
	 SMW5aLNppIzzjhGMqwq5YnwYXgVgqplJAS5x/D0XaT4GWkShh/p+HrVSaTZl6zZGXMw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795627397;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=M3cLFOviybsaEA5eYi5Q+NMk+ioo8WIGpCekkymZxlU=;
	b=BfhBecwhaloob5MpoLD3cA8f9tEw3MfRO5pbEedTLBA+BAh4WnLzA9Jfo591wJnqxmxe
	 Wgkvi0VFTr62Z8w6UOW3fXZLV9v4x7R9rrrtvkk+2cTDxbOHdk040jodjJwbmJ6GiKVUm
	 478VTR39QQVcAaMZY9W7qZgpetOMvlEWozpiUwe9u+X/XerDTJQ38lYRDkj7rqiUCsDsX
	 dm+g8l8xyHMx6WgCRAC3Jhpu/5QOsVp/rgru7R6oh0jw5o2iXmT3Sw7YBC607GDkeF3rH
	 ipPSQhB8urbKmNdPFXLsqvhugbuRSYeXr4FvICBjEkz4Z+NkNhCKKmV+K/r/bZ0BgkQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=W9drzNba;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 6EF10606A339;
	Wed, 25 Nov 2026 17:23:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=W9drzNba
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.229.132
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795627396;
	b=1uxIFq5YEdGA8PTopIe07kkWSadJLoBVm/KtlQ51mbckMyBML9fL9tYZd9otoji0erFc
	 KboSS7/vvCeTPptoaCIRXV+ucG/jpGJd3RaGlbQeE7nP5AuO2F1ZeViZec/vtddq2RHfB
	 Vx+9DxkQ3IK7FYWj0tRHiwwIO+cDpaaF4FLyvA3ysQ7fNmL8deOIn71tgKPPVhuZd20d9
	 RlcLd1UbtY6arkzM68ZBy6clfXGky8tFjcyTekegwWAWcgBQ75ruF/oNISQYKdwpXW3y0
	 ZM3mkjh7Q5mP6VRsND5cHilAFo1guDRY7x7F1aDtXXVf//nMVdSH5TP9sqpjFbrxjOg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795627396;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
	 Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
	bh=M3cLFOviybsaEA5eYi5Q+NMk+ioo8WIGpCekkymZxlU=;
	b=e/wm3ENMqzPbOl71UZ7uqlsK5ydSmZFVrd87TKd8OlwxuMDkFOZ/EOIIyRpAuHUq699i
	 VLX6S9Lr3yh3bTsuqdqPEyKhrWDDdgdiNjWSv/FFf2/jMcqutk1KSyFd70404mVXZlRlx
	 HPCCzfYjtMqSrs1G93ihrwwhaiK5pZRh13NZuln8Fe701E54aX8+LLIVFP9o4wdE5/bir
	 6dQIAGp7fG4AkUNekJM4rCVo0brtZbS4GE6zgs0lMNnAs34v9qPLtaVQaRSPOvpjDTeg2
	 pNkzEWVBPAbjlj5QPN+1NBdJzx3r59DLe8McCfNjMWv1AvnGuUCaTsMKXplAAWUa0Xg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=W9drzNba;
	arc=none smtp.remote-ip=74.125.229.132
X-Received: from mail-dl2-f4.google.com (mail-dl2-f4.google.com [74.125.229.132])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4071A606A32A
	for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 17:23:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4071A606A32A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl2-f4.google.com with SMTP id a92af1059eb24-1b573ae2265so402656c88.1
        for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 09:23:16 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795627395; x=1796232195; darn=vger.kernel.org;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :content-type:mime-version:references:message-id:subject:cc:to:from
         :date:from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=M3cLFOviybsaEA5eYi5Q+NMk+ioo8WIGpCekkymZxlU=;
        b=W9drzNbaeta0MQOtE+aRVbWl3W5QqwPjJmejKDgdWqjarYgX3qXihFOfoQ9vE3r9Vl
         jXry/DkbyXmNBbkFq0mlHcEzHjD4PSCFVCV12jRb+8rSS86UrAepr8aKOno9GP2Q/jKR
         4+tB6MvJM1214hq5qFQsH6N0m0nX34dLx6/CIqdggFt0yXEYQ/a34DgWFwLNoIuW95Om
         D2OrT3+ReYZCHxRd+TweHyjhSelxwtWSbPhSRP76WTrni3MyRFr4/ioteoV0QrHyekR+
         hOpeww/h4KMV27Cp1fkmJbCYjHqpY/ue8M24Eq6Irx+rR6y+WQQkt6g2jB0vRzshOA31
         mMTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795627395; x=1796232195;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :content-type:mime-version:references:message-id:subject:cc:to:from
         :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=M3cLFOviybsaEA5eYi5Q+NMk+ioo8WIGpCekkymZxlU=;
        b=DugOZ64GWaWouOCxKgQ2uL/FxG6vvp9EvnxH3wLrHZNu8+SucVYXTkizfRMS8zLJiG
         l+f0IY1N2jLKGN2qpXIHWIKWf1Nc9MvcdOufuwvNSp60YYWxIdjPL+ZX8EOLeJL1bbPE
         v/1oTseZO58WhhXmVN/rj2DICWTN7Zvx+fjW63rXeWjvLh6BRxEstiZlsWAKXXCp+Y3W
         0N6yWoglqv8zhQWoppIK9YS1LFKyVHes6MF67sQ6DZ95vZ+W2Vd7N9z1nmp38vCV1/B2
         T63XQhECdtLCua9O0K1qU2FuSFEPF7CeNuSma8SqlSCK5Imak87ocLvP9iKht8mnVIuT
         eviQ==
X-Gm-Message-State: APuU4Z/FbWUIJu3gkxBSguixQTuLBv5Xs7vOXCSkAH41KcKQsSuvXgCf
	IKyT23VXzxQYfgWsJ9v3JKx8PuQbMXPY56OVk9OVe4sRp1dosrqSyJT5
X-Gm-Gg: AZFdTZcJJzgyi2grgqp5keBiCLKYmelJC9BVa6uyJvgrze35cJIQwIRc7nodMejqHJm
	m59lxPmJspv11AoYPX+VZQ3BFQwnHuUtfPuKfte7EgF5szyMK4/H738mDva1dX+Qkn7OCVV8qt5
	yB0UDBU851mN/gSSE7weQMx6lGaxfr0lBg3OBmoEy3oDbT0XupzcahL85Rew6NCSbbj+/FFRBFO
	T0+8aThXOJ22IaAsZlq4xpp7so1xN721ZZa7LPHxfPhq9CzocMh206V+K0Auud+SjfLKz+Qsp09
	QX7q5Vuii27X0et0syGVGvAJkIYlUh7kFqZ0D6HJendtbf/6JKCw91ujPhXdJqSN2OLkKqu6uDk
	P3DLFjNiFeZrGlByCtqu5Mc1AUUwaAKEOcmjIpmxHnQxy8jJdyqa/2qoIg8CIrENPrvEQ5QHUvd
	dRZXoae5vIoggr9/d03J4LUgCq3Ye5fKwu6ElxxXDkwzhuuk/gYSf27ntxVcG1BPldl0hiWo7lP
	3TF6nLQ9Ki8fo8ZF9Kk1m7eWlH65O+HyQIE6BaUXk33m34muy/h3ZblbBkO18l2HzuGBek1y88d
	MxgtEpzNMihK5OzDUG4r3jI=
X-Received: by 2002:a05:7022:3c0d:b0:1b5:39fb:c684 with SMTP id a92af1059eb24-1b556936838mr15116926c88.37.1795627395050;
        Wed, 25 Nov 2026 09:23:15 -0800 (PST)
X-Received: from localhost ([2a03:2880:9ff:41::])
        by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55684c85fsm64804099c88.14.2026.11.25.09.23.14
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 25 Nov 2026 09:23:14 -0800 (PST)
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com
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
X-In-Reply-To: <179554218233.3135.9733987891875533759@kernel.org>