Skip to content

Commit 2460f31

Browse files
vbnogueirakuba-moo
authored andcommitted
selftests/tc-testing: Try to add teql as a child qdisc
Add a selftest that attempts to add a teql qdisc as a qfq child. Since teql _must_ be added as a root qdisc, the kernel should reject this. Signed-off-by: Victor Nogueira <victor@mojatatu.com> Link: https://patch.msgid.link/20260114160243.913069-4-jhs@mojatatu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent d837fbe commit 2460f31

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • tools/testing/selftests/tc-testing/tc-tests/qdiscs

tools/testing/selftests/tc-testing/tc-tests/qdiscs/teql.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,30 @@
8181
"$TC qdisc del dev $DUMMY handle 1: root",
8282
"$IP link del dev $DUMMY"
8383
]
84+
},
85+
{
86+
"id": "124e",
87+
"name": "Try to add teql as a child qdisc",
88+
"category": [
89+
"qdisc",
90+
"ets",
91+
"tbf"
92+
],
93+
"plugins": {
94+
"requires": [
95+
"nsPlugin"
96+
]
97+
},
98+
"setup": [
99+
"$TC qdisc add dev $DUMMY root handle 1: qfq",
100+
"$TC class add dev $DUMMY parent 1: classid 1:1 qfq weight 15 maxpkt 16384"
101+
],
102+
"cmdUnderTest": "$TC qdisc add dev $DUMMY parent 1:1 handle 2:1 teql0",
103+
"expExitCode": "2",
104+
"verifyCmd": "$TC -s -j qdisc ls dev $DUMMY parent 1:1",
105+
"matchJSON": [],
106+
"teardown": [
107+
"$TC qdisc del dev $DUMMY root handle 1:"
108+
]
84109
}
85110
]

0 commit comments

Comments
 (0)