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