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/2026…%40gmail.com