Article View: linux.kernel.netdev
Article #27474Re: [PATCH net-next v11 2/4] selftests: tc-testing: add fq_pie per-flow class stats test
From: netdev-bot+sashiko
Date: Sat, 05 Dec 2026 19:17
Date: Sat, 05 Dec 2026 19:17
93 lines
11560 bytes
11560 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
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] The new test 83c0 in tools/testing/selftests/tc-testing/tc-
tests/qdiscs/fq_pie.json fails on any system with a released iproute2.
--
selftests: tc-testing: add fq_pie per-flow class stats test
This adds tc-testing case 83c0 to fq_pie.json. The test builds a TBF +
fq_pie hierarchy on $DUMMY and sends ping traffic through it. It then
checks the tc -s class show output for an fq_pie class.
> diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq_pie.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq_pie.json
> index 229fe1bf4a906..15b2667285eb4 100644
> --- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq_pie.json
> +++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq_pie.json
> @@ -40,5 +40,32 @@
[ ... ]
> + {
> + "id": "83c0",
> + "name": "FQ-PIE class stats accessible via tc class show",
[ ... ]
> + "cmdUnderTest": "$TC -s class show dev $DUMMY",
> + "expExitCode": "0",
> + "verifyCmd": "$TC -s class show dev $DUMMY",
> + "matchPattern": "class fq_pie 2:[0-9]+ .*prob .*delay .*deficit",
> + "matchCount": "1",
[Severity: Medium]
On a system with a released iproute2, will this test fail instead of
skipping?
The matchPattern needs the labels prob, delay and deficit in the tc -s
class show output. On the kernel side, fq_pie_dump_class_stats() in
net/sched/sch_fq_pie.c only sends a binary tc_fq_pie_xstats blob. That
blob uses the new type/class_stats layout:
xstats.type = TCA_FQ_PIE_XSTATS_CLASS;
xstats.class_stats.prob = READ_ONCE(flow->vars.prob) << BITS_PER_BYTE;
Released tc only knows the qdisc xstats layout (pkts_in, overlimit,
dropped, ecn_mark, new_flow_count and so on). Those words do not appear
in the tbf class line or in the generic stats lines either.
So the regex finds 0 matches, and run_one_test() in tdc.py marks the test
as failed:
if len(match_index) != int(tidx["matchCount"]):
res.set_result(ResultState.fail)
Later patches in the series don't touch tools/testing/selftests/tc-testing/.
The test will keep failing until the iproute2 change ships and is
installed.
tdc already supports a dependsOn probe: if the probe exits non-zero, the
test is marked SKIP. mirred.json, tunnel_key.json and taprio.json already
use it. Could 83c0 add a dependsOn probe that checks for the new iproute2
support?
The commit message also describes a weaker check than the one the test
does:
... and verify that 'tc -s class show' reports
an fq_pie class.
The per-flow counters themselves (prob, delay, deficit) are printed with
the companion iproute2 change, ...
The regex requires those counters. That gives the test a hard dependency
on the unmerged iproute2 change "tc: fq_pie: add support for printing
per-flow PIE statistics".
Should the pattern match only the class line, for example
"class fq_pie 2:[0-9]+ parent 2:"? If the counter check stays, should the
commit message state the dependency on the iproute2 change?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204190143.633361-1-hemendranaik%40gmail.com
Technical Details
Message-ID:
<179649826210.3148.8670883871173722658@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!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-378098-linux-kernel-netdev=dewy.ruReferences:
<20261204190143.633361-3-hemendranaik@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!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-378098-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v11 2/4] selftests: tc-testing: add fq_pie per-flow class stats test Date: Sat, 05 Dec 2026 19:17:42 +0000 Organization: Usenet Network Message-ID: <179649826210.3148.8670883871173722658@kernel.org> References: <20261204190143.633361-3-hemendranaik@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3102507"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:HcQNex7Ru/GC/mi5iO/+cAUetVw= sha256:G+DKPp7KE0wwuzZmSMQyPoWWyGS+KTKB7ixx22zMrj4= sha1:g2/fvKynZyZLV3/6P453Dzk2NGE= sha256:FUZWQ5V6bzapzVNfwlmwzo4xv1XiXZqbrnx46uYP+0c= 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 637A7117E92; Sat, 5 Dec 2026 22:18:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.54 X-Spam-Status: No, score=-3.54 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.14, 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] 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 QvLoY4vqQQuG; Sat, 5 Dec 2026 22:18:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-378098-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 333A4117E25; Sat, 5 Dec 2026 22:17:59 +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 83D1233303; Sat, 5 Dec 2026 19:17:50 +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=1796498269; b=u/lsi+f9Ms83XYMI3epzdYqr7bh6xhBpiAbde1A32uO4Ly8gwaUxGK3bod2OdLoYA26f ruUNH8t9e8xAYMhV+3CtXoXSzQ0H/Iwkk9EL2vmOSl0yIr5EfxMrYRmP8lYxJPiFs8oZC lXfx7qtBajG9EjMsfw7eNOeTNDtAj4EimmzzeQMbmTYNsU8pqhVnq6H8Q4FRGqJsEIGX+ ghha/4FIAdo6Hso8DYZqntqgdUWp5lKBrIgUox+j5FQtOstUSvdpB95Irja0cNXPIswAr PMGfNvhn2h206XeuO5Wjq1exc2mgMH11I+UfKtdSeoFXHCbv9uzoSbN9H48MJ5yqQrA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796498269; 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=ArLcFXDROI9i2fbz8zHQGHMBvNg41cwRwjSB0uZPzD0=; b=1uyWQXzT+ZtBymgXDBPXTIsK1EeLzifqzqF1GnBk0Zz5mRTqz7An+lDutze7nrs182Vu W0xCe0SPWSF0B1V4Lzbv8qZvPqmYkoG/4kXXPwmhZ2ZVyI992K3Eop3NL2y59HlYCwCJB jmtqwjXby9q7U4aJk3nISLlxULSyZ201IJvQjTqIYi6u8ntXVyqmpCuQ1yFUsxLjExYZG eqaN8v/piz8JblKe9WaGlLhxNPrLBzBeuKq3jfA3r4SqhX+v7508LXCx1m7FHD6PVY253 1UZMYia4WNNTm/7CBONNgAh4+eS+PliFy/khvRfHWeoAY9/ZYFZ353LH1rmeVtRvP5g== 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=l9LbOUaM; 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 87845606A335; Sat, 5 Dec 2026 19:17:49 +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=l9LbOUaM 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=1796498263; b=EJI7Vf+viJHI/HGHj7O0F6yAqL5/g9d/cQTnlzvi2zjLM4WC9mAJHk4z7vxl2pMJJ/I7 W/vvm5fWAr5lurOYdRVCXKKKXvkm5Ti918qeyODDSbLDVN6K+WxZHTUZdYxtbFRJhVsFe K/KbHexdm5N3Me8UAPCQCV0l5PPgGq/YcUu1SQLR4Se/e/7BuEQQrKWFHHG1RtGK/jdQN LuPePqRaXEv2Ty/9SjkH3EXiSQ9TCB4kdB9AMKSW/qrDFSE3ugxt+jI7XV0hxO90cOPcA RGitbKO0VgZmNCvue7nXi1s5RgxJiQ+7SZHED9DCMc0ZQmHdG82JA6yhu1C7iNbKjfA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796498263; 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=ArLcFXDROI9i2fbz8zHQGHMBvNg41cwRwjSB0uZPzD0=; b=31BMOeSE/BfRiZiEhz6Y8RON7GU8um3efLkfHv/wkFEzXoVjb9zF9FE6oEmwRnWNKDjD D1dJdQ3ZxOvzo+jLLsZP0pWerCttLWyuJd3ziLekVWr5r10rVEkTD/hHtN9RlNKeBSDD0 32dK50aNPRkmrY7Lax4EzQ1/vVzlKY+DCxVOinWVEPWedA2qXEqQGOskaEuy3BwugqO3h QBuOSmFHsTBluPw20OAi72vAYSq2O3I1sa9QMNzjmMc9+UzQR0mmnBNnyv8J0PGsB73/c Evjyl9l8uG4jL71oejfSNUr1GrgXO+ccXzec+ZVSh/NhMDPLntNQuey0eaPwCJwL4Vw== 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=l9LbOUaM; 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 A6792606A33B; Sat, 5 Dec 2026 19:17:43 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8390B1F00A11; Sat, 5 Dec 2026 19:17:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796498263; bh=ArLcFXDROI9i2fbz8zHQGHMBvNg41cwRwjSB0uZPzD0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=l9LbOUaMvamIYyh6NIRt0ZLLPh9k8MJwCv2suFEiJbxTM5Yck97fCqBxAyunRoHs/ Nj3AvQGr0p6Usu9/5+GM3uifhNWJ3iP6kDdp/Ylc98S37+tF52XmWJorIZvwDARjoG 4t4JcmsOkXBK0VMYWWIFlAVPmnxirBqJ8j3Sr0sXERsNaw1jryO2vFvtbezvLVX58Z jgy6GWc4YaaVs2K86TwxzbGs/Js2SEkxsHdbFVUwdJi7V1VUdjVQcCmrnKlEwFf4D5 G4aSXidVAuxfXYTWTNmjfAkA5xUMM1MIejGIx8B8d41+loMHe3yobkAuDsWHPW3kJr iLn67rLjX3LgA== X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, jiri@resnulli.us, jhs@mojatatu.com, shuah@kernel.org, donald.hunter@gmail.com, ast@fiberby.net, toke@redhat.com, liuhangbin@kylinos.cn, j.koeppeler@tu-berlin.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, vishy0777@gmail.com, tahiliani@nitk.edu.in X-In-Reply-To: <20261204190143.633361-3-hemendranaik@gmail.com> 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