xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/skbprio.json (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1[
2    {
3        "id": "283e",
4        "name": "Create skbprio with default setting",
5        "category": [
6            "qdisc",
7            "skbprio"
8        ],
9        "plugins": {
10            "requires": "nsPlugin"
11        },
12        "setup": [
13        ],
14        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio",
15        "expExitCode": "0",
16        "verifyCmd": "$TC qdisc show dev $DUMMY",
17        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 64",
18        "matchCount": "1",
19        "teardown": [
20            "$TC qdisc del dev $DUMMY handle 1: root"
21        ]
22    },
23    {
24        "id": "c086",
25        "name": "Create skbprio with limit setting",
26        "category": [
27            "qdisc",
28            "skbprio"
29        ],
30        "plugins": {
31            "requires": "nsPlugin"
32        },
33        "setup": [
34        ],
35        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio limit 1",
36        "expExitCode": "0",
37        "verifyCmd": "$TC qdisc show dev $DUMMY",
38        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 1",
39        "matchCount": "1",
40        "teardown": [
41            "$TC qdisc del dev $DUMMY handle 1: root"
42        ]
43    },
44    {
45        "id": "6733",
46        "name": "Change skbprio with limit setting",
47        "category": [
48            "qdisc",
49            "skbprio"
50        ],
51        "plugins": {
52            "requires": "nsPlugin"
53        },
54        "setup": [
55            "$TC qdisc add dev $DUMMY handle 1: root skbprio"
56        ],
57        "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root skbprio limit 32",
58        "expExitCode": "0",
59        "verifyCmd": "$TC qdisc show dev $DUMMY",
60        "matchPattern": "qdisc skbprio 1: root refcnt [0-9]+ limit 32",
61        "matchCount": "1",
62        "teardown": [
63            "$TC qdisc del dev $DUMMY handle 1: root"
64        ]
65    },
66    {
67        "id": "2958",
68        "name": "Show skbprio class",
69        "category": [
70            "qdisc",
71            "skbprio"
72        ],
73        "plugins": {
74            "requires": "nsPlugin"
75        },
76        "setup": [
77        ],
78        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root skbprio",
79        "expExitCode": "0",
80        "verifyCmd": "$TC class show dev $DUMMY",
81        "matchPattern": "class skbprio 1:",
82        "matchCount": "64",
83        "teardown": [
84            "$TC qdisc del dev $DUMMY handle 1: root"
85        ]
86    }
87]
88