]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/tc-testing: Adapt test's output to HFSC's iproute2 printing changes
authorVictor Nogueira <victor@mojatatu.com>
Sat, 7 Mar 2026 22:07:24 +0000 (19:07 -0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Mar 2026 02:42:19 +0000 (19:42 -0700)
To make the printing of HFSC's defcls consistent with HTB's,
iproute2 is now printing defcls prepended with "0x".

This commit adapts test a4c3 to this change.

Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Link: https://patch.msgid.link/20260307220724.2501212-1-victor@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/tc-testing/tc-tests/infra/qdiscs.json

index 6a39640aa2a862a64207886ab41ab25212b6beb8..ec0f85af6379f72019b83e2573e41600f132b6bd 100644 (file)
         "cmdUnderTest": "$TC class change dev $DUMMY parent 3:0 classid 3:1 hfsc sc m1 5Mbit d 10ms m2 10Mbit",
         "expExitCode": "0",
         "verifyCmd": "$TC -s qdisc show dev $DUMMY",
-        "matchPattern": "qdisc hfsc 3:.*parent 1:2.*default 1",
+        "matchPattern": "qdisc hfsc 3:.*parent 1:2.*default 0x1",
         "matchCount": "1",
         "teardown": [
             "$TC qdisc del dev $DUMMY handle 1:0 root",