Skip to content

Commit 7a0572a

Browse files
vbnogueiraNipaLocal
authored andcommitted
selftests/tc-testing: Create tests trying to add children to clsact/ingress qdiscs
In response to Wang's bug report [1], add the following test cases: - Try and fail to add an fq child to an ingress qdisc - Try and fail to add an fq child to a clsact qdisc [1] https://lore.kernel.org/netdev/[email protected]/ Reviewed-by: Pedro Tammela <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: Victor Nogueira <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent d78fdc9 commit 7a0572a

File tree

1 file changed

+44
-0
lines changed
  • tools/testing/selftests/tc-testing/tc-tests/infra

1 file changed

+44
-0
lines changed

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,5 +961,49 @@
961961
"teardown": [
962962
"$TC qdisc del dev $DUMMY root"
963963
]
964+
},
965+
{
966+
"id": "4989",
967+
"name": "Try to add an fq child to an ingress qdisc",
968+
"category": [
969+
"qdisc",
970+
"ingress"
971+
],
972+
"plugins": {
973+
"requires": "nsPlugin"
974+
},
975+
"setup": [
976+
"$TC qdisc add dev $DUMMY handle ffff:0 ingress"
977+
],
978+
"cmdUnderTest": "$TC qdisc add dev $DUMMY parent ffff:0 handle ffe0:0 fq",
979+
"expExitCode": "2",
980+
"verifyCmd": "$TC -j qdisc ls dev $DUMMY handle ffe0:",
981+
"matchJSON": [],
982+
"matchCount": "1",
983+
"teardown": [
984+
"$TC qdisc del dev $DUMMY ingress"
985+
]
986+
},
987+
{
988+
"id": "c2b0",
989+
"name": "Try to add an fq child to a clsact qdisc",
990+
"category": [
991+
"qdisc",
992+
"ingress"
993+
],
994+
"plugins": {
995+
"requires": "nsPlugin"
996+
},
997+
"setup": [
998+
"$TC qdisc add dev $DUMMY handle ffff:0 clsact"
999+
],
1000+
"cmdUnderTest": "$TC qdisc add dev $DUMMY parent ffff:0 handle ffe0:0 fq",
1001+
"expExitCode": "2",
1002+
"verifyCmd": "$TC -j qdisc ls dev $DUMMY handle ffe0:",
1003+
"matchJSON": [],
1004+
"matchCount": "1",
1005+
"teardown": [
1006+
"$TC qdisc del dev $DUMMY clsact"
1007+
]
9641008
}
9651009
]

0 commit comments

Comments
 (0)