1[ 2 { 3 "id": "6345", 4 "name": "Create DSMARK with default setting", 5 "category": [ 6 "qdisc", 7 "dsmark" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [ 13 "$IP link add dev $DUMMY type dummy || /bin/true" 14 ], 15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024", 16 "expExitCode": "0", 17 "verifyCmd": "$TC qdisc show dev $DUMMY", 18 "matchPattern": "qdisc dsmark 1: root refcnt [0-9]+ indices 0x0400", 19 "matchCount": "1", 20 "teardown": [ 21 "$TC qdisc del dev $DUMMY handle 1: root", 22 "$IP link del dev $DUMMY type dummy" 23 ] 24 }, 25 { 26 "id": "3462", 27 "name": "Create DSMARK with default_index setting", 28 "category": [ 29 "qdisc", 30 "dsmark" 31 ], 32 "plugins": { 33 "requires": "nsPlugin" 34 }, 35 "setup": [ 36 "$IP link add dev $DUMMY type dummy || /bin/true" 37 ], 38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024 default_index 512", 39 "expExitCode": "0", 40 "verifyCmd": "$TC qdisc show dev $DUMMY", 41 "matchPattern": "qdisc dsmark 1: root refcnt [0-9]+ indices 0x0400 default_index 0x0200", 42 "matchCount": "1", 43 "teardown": [ 44 "$TC qdisc del dev $DUMMY handle 1: root", 45 "$IP link del dev $DUMMY type dummy" 46 ] 47 }, 48 { 49 "id": "ca95", 50 "name": "Create DSMARK with set_tc_index flag", 51 "category": [ 52 "qdisc", 53 "dsmark" 54 ], 55 "plugins": { 56 "requires": "nsPlugin" 57 }, 58 "setup": [ 59 "$IP link add dev $DUMMY type dummy || /bin/true" 60 ], 61 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024 set_tc_index", 62 "expExitCode": "0", 63 "verifyCmd": "$TC qdisc show dev $DUMMY", 64 "matchPattern": "qdisc dsmark 1: root refcnt [0-9]+ indices 0x0400 set_tc_index", 65 "matchCount": "1", 66 "teardown": [ 67 "$TC qdisc del dev $DUMMY handle 1: root", 68 "$IP link del dev $DUMMY type dummy" 69 ] 70 }, 71 { 72 "id": "a950", 73 "name": "Create DSMARK with multiple setting", 74 "category": [ 75 "qdisc", 76 "dsmark" 77 ], 78 "plugins": { 79 "requires": "nsPlugin" 80 }, 81 "setup": [ 82 "$IP link add dev $DUMMY type dummy || /bin/true" 83 ], 84 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024 default_index 1024 set_tc_index", 85 "expExitCode": "0", 86 "verifyCmd": "$TC qdisc show dev $DUMMY", 87 "matchPattern": "qdisc dsmark 1: root refcnt [0-9]+ indices 0x0400 default_index 0x0400 set_tc_index", 88 "matchCount": "1", 89 "teardown": [ 90 "$TC qdisc del dev $DUMMY handle 1: root", 91 "$IP link del dev $DUMMY type dummy" 92 ] 93 }, 94 { 95 "id": "4092", 96 "name": "Delete DSMARK with handle", 97 "category": [ 98 "qdisc", 99 "dsmark" 100 ], 101 "plugins": { 102 "requires": "nsPlugin" 103 }, 104 "setup": [ 105 "$IP link add dev $DUMMY type dummy || /bin/true", 106 "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024 default_index 1024" 107 ], 108 "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", 109 "expExitCode": "0", 110 "verifyCmd": "$TC qdisc show dev $DUMMY", 111 "matchPattern": "qdisc dsmark 1: root refcnt [0-9]+ indices 0x0400", 112 "matchCount": "0", 113 "teardown": [ 114 "$IP link del dev $DUMMY type dummy" 115 ] 116 }, 117 { 118 "id": "5930", 119 "name": "Show DSMARK class", 120 "category": [ 121 "qdisc", 122 "dsmark" 123 ], 124 "plugins": { 125 "requires": "nsPlugin" 126 }, 127 "setup": [ 128 "$IP link add dev $DUMMY type dummy || /bin/true" 129 ], 130 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root dsmark indices 1024", 131 "expExitCode": "0", 132 "verifyCmd": "$TC class show dev $DUMMY", 133 "matchPattern": "class dsmark 1:", 134 "matchCount": "0", 135 "teardown": [ 136 "$TC qdisc del dev $DUMMY handle 1: root", 137 "$IP link del dev $DUMMY type dummy" 138 ] 139 } 140] 141