From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D0E31F00897; Tue, 1 Dec 2026 18:10:27 +0000 (UTC) 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== Subject: Re: [PATCH net-next v2 1/4] selftests: drv-net: kperf: support request-response tests 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, 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 Date: Tue, 01 Dec 2026 18:10:26 +0000 Message-ID: <179614862670.3146.3546075545079468776@kernel.org> In-Reply-To: <20261130174609.314114-2-sdf.kernel@gmail.com> References: <20261130174609.314114-2-sdf.kernel@gmail.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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