|
1054 | 1054 | "teardown": [ |
1055 | 1055 | "$TC qdisc del dev $DEV1 ingress" |
1056 | 1056 | ] |
| 1057 | + }, |
| 1058 | + { |
| 1059 | + "id": "b2b6", |
| 1060 | + "name": "Add basic filter with canid ematch and single SFF", |
| 1061 | + "category": [ |
| 1062 | + "filter", |
| 1063 | + "basic" |
| 1064 | + ], |
| 1065 | + "plugins": { |
| 1066 | + "requires": "nsPlugin" |
| 1067 | + }, |
| 1068 | + "setup": [ |
| 1069 | + "$TC qdisc add dev $DEV1 ingress" |
| 1070 | + ], |
| 1071 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 1)' classid 1:1", |
| 1072 | + "expExitCode": "0", |
| 1073 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1074 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(sff 0x1\\)", |
| 1075 | + "matchCount": "1", |
| 1076 | + "teardown": [ |
| 1077 | + "$TC qdisc del dev $DEV1 ingress" |
| 1078 | + ] |
| 1079 | + }, |
| 1080 | + { |
| 1081 | + "id": "f67f", |
| 1082 | + "name": "Add basic filter with canid ematch and single SFF with mask", |
| 1083 | + "category": [ |
| 1084 | + "filter", |
| 1085 | + "basic" |
| 1086 | + ], |
| 1087 | + "plugins": { |
| 1088 | + "requires": "nsPlugin" |
| 1089 | + }, |
| 1090 | + "setup": [ |
| 1091 | + "$TC qdisc add dev $DEV1 ingress" |
| 1092 | + ], |
| 1093 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 0xaabb:0x00ff)' classid 1:1", |
| 1094 | + "expExitCode": "0", |
| 1095 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1096 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(sff 0x2BB:0xFF\\)", |
| 1097 | + "matchCount": "1", |
| 1098 | + "teardown": [ |
| 1099 | + "$TC qdisc del dev $DEV1 ingress" |
| 1100 | + ] |
| 1101 | + }, |
| 1102 | + { |
| 1103 | + "id": "bd5c", |
| 1104 | + "name": "Add basic filter with canid ematch and multiple SFF", |
| 1105 | + "category": [ |
| 1106 | + "filter", |
| 1107 | + "basic" |
| 1108 | + ], |
| 1109 | + "plugins": { |
| 1110 | + "requires": "nsPlugin" |
| 1111 | + }, |
| 1112 | + "setup": [ |
| 1113 | + "$TC qdisc add dev $DEV1 ingress" |
| 1114 | + ], |
| 1115 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 1 sff 2 sff 3)' classid 1:1", |
| 1116 | + "expExitCode": "0", |
| 1117 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1118 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(sff 0x1 sff 0x2 sff 0x3\\)", |
| 1119 | + "matchCount": "1", |
| 1120 | + "teardown": [ |
| 1121 | + "$TC qdisc del dev $DEV1 ingress" |
| 1122 | + ] |
| 1123 | + }, |
| 1124 | + { |
| 1125 | + "id": "83c7", |
| 1126 | + "name": "Add basic filter with canid ematch and multiple SFF with masks", |
| 1127 | + "category": [ |
| 1128 | + "filter", |
| 1129 | + "basic" |
| 1130 | + ], |
| 1131 | + "plugins": { |
| 1132 | + "requires": "nsPlugin" |
| 1133 | + }, |
| 1134 | + "setup": [ |
| 1135 | + "$TC qdisc add dev $DEV1 ingress" |
| 1136 | + ], |
| 1137 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 0xaa:0x01 sff 0xbb:0x02 sff 0xcc:0x03)' classid 1:1", |
| 1138 | + "expExitCode": "0", |
| 1139 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1140 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(sff 0xAA:0x1 sff 0xBB:0x2 sff 0xCC:0x3\\)", |
| 1141 | + "matchCount": "1", |
| 1142 | + "teardown": [ |
| 1143 | + "$TC qdisc del dev $DEV1 ingress" |
| 1144 | + ] |
| 1145 | + }, |
| 1146 | + { |
| 1147 | + "id": "a8f5", |
| 1148 | + "name": "Add basic filter with canid ematch and single EFF", |
| 1149 | + "category": [ |
| 1150 | + "filter", |
| 1151 | + "basic" |
| 1152 | + ], |
| 1153 | + "plugins": { |
| 1154 | + "requires": "nsPlugin" |
| 1155 | + }, |
| 1156 | + "setup": [ |
| 1157 | + "$TC qdisc add dev $DEV1 ingress" |
| 1158 | + ], |
| 1159 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(eff 1)' classid 1:1", |
| 1160 | + "expExitCode": "0", |
| 1161 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1162 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0x1\\)", |
| 1163 | + "matchCount": "1", |
| 1164 | + "teardown": [ |
| 1165 | + "$TC qdisc del dev $DEV1 ingress" |
| 1166 | + ] |
| 1167 | + }, |
| 1168 | + { |
| 1169 | + "id": "98ae", |
| 1170 | + "name": "Add basic filter with canid ematch and single EFF with mask", |
| 1171 | + "category": [ |
| 1172 | + "filter", |
| 1173 | + "basic" |
| 1174 | + ], |
| 1175 | + "plugins": { |
| 1176 | + "requires": "nsPlugin" |
| 1177 | + }, |
| 1178 | + "setup": [ |
| 1179 | + "$TC qdisc add dev $DEV1 ingress" |
| 1180 | + ], |
| 1181 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(eff 0xaabb:0xf1f1)' classid 1:1", |
| 1182 | + "expExitCode": "0", |
| 1183 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1184 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0xAABB:0xF1F1\\)", |
| 1185 | + "matchCount": "1", |
| 1186 | + "teardown": [ |
| 1187 | + "$TC qdisc del dev $DEV1 ingress" |
| 1188 | + ] |
| 1189 | + }, |
| 1190 | + { |
| 1191 | + "id": "6056", |
| 1192 | + "name": "Add basic filter with canid ematch and multiple EFF", |
| 1193 | + "category": [ |
| 1194 | + "filter", |
| 1195 | + "basic" |
| 1196 | + ], |
| 1197 | + "plugins": { |
| 1198 | + "requires": "nsPlugin" |
| 1199 | + }, |
| 1200 | + "setup": [ |
| 1201 | + "$TC qdisc add dev $DEV1 ingress" |
| 1202 | + ], |
| 1203 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(eff 1 eff 2 eff 3)' classid 1:1", |
| 1204 | + "expExitCode": "0", |
| 1205 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1206 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0x1 eff 0x2 eff 0x3\\)", |
| 1207 | + "matchCount": "1", |
| 1208 | + "teardown": [ |
| 1209 | + "$TC qdisc del dev $DEV1 ingress" |
| 1210 | + ] |
| 1211 | + }, |
| 1212 | + { |
| 1213 | + "id": "d188", |
| 1214 | + "name": "Add basic filter with canid ematch and multiple EFF with masks", |
| 1215 | + "category": [ |
| 1216 | + "filter", |
| 1217 | + "basic" |
| 1218 | + ], |
| 1219 | + "plugins": { |
| 1220 | + "requires": "nsPlugin" |
| 1221 | + }, |
| 1222 | + "setup": [ |
| 1223 | + "$TC qdisc add dev $DEV1 ingress" |
| 1224 | + ], |
| 1225 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(eff 0xaa:0x01 eff 0xbb:0x02 eff 0xcc:0x03)' classid 1:1", |
| 1226 | + "expExitCode": "0", |
| 1227 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1228 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0xAA:0x1 eff 0xBB:0x2 eff 0xCC:0x3\\)", |
| 1229 | + "matchCount": "1", |
| 1230 | + "teardown": [ |
| 1231 | + "$TC qdisc del dev $DEV1 ingress" |
| 1232 | + ] |
| 1233 | + }, |
| 1234 | + { |
| 1235 | + "id": "25d1", |
| 1236 | + "name": "Add basic filter with canid ematch and a combination of SFF/EFF", |
| 1237 | + "category": [ |
| 1238 | + "filter", |
| 1239 | + "basic" |
| 1240 | + ], |
| 1241 | + "plugins": { |
| 1242 | + "requires": "nsPlugin" |
| 1243 | + }, |
| 1244 | + "setup": [ |
| 1245 | + "$TC qdisc add dev $DEV1 ingress" |
| 1246 | + ], |
| 1247 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 0x01 eff 0x02)' classid 1:1", |
| 1248 | + "expExitCode": "0", |
| 1249 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1250 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0x2 sff 0x1\\)", |
| 1251 | + "matchCount": "1", |
| 1252 | + "teardown": [ |
| 1253 | + "$TC qdisc del dev $DEV1 ingress" |
| 1254 | + ] |
| 1255 | + }, |
| 1256 | + { |
| 1257 | + "id": "b438", |
| 1258 | + "name": "Add basic filter with canid ematch and a combination of SFF/EFF with masks", |
| 1259 | + "category": [ |
| 1260 | + "filter", |
| 1261 | + "basic" |
| 1262 | + ], |
| 1263 | + "plugins": { |
| 1264 | + "requires": "nsPlugin" |
| 1265 | + }, |
| 1266 | + "setup": [ |
| 1267 | + "$TC qdisc add dev $DEV1 ingress" |
| 1268 | + ], |
| 1269 | + "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'canid(sff 0x01:0xf eff 0x02:0xf)' classid 1:1", |
| 1270 | + "expExitCode": "0", |
| 1271 | + "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", |
| 1272 | + "matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*canid\\(eff 0x2:0xF sff 0x1:0xF\\)", |
| 1273 | + "matchCount": "1", |
| 1274 | + "teardown": [ |
| 1275 | + "$TC qdisc del dev $DEV1 ingress" |
| 1276 | + ] |
1057 | 1277 | } |
1058 | 1278 | ] |
0 commit comments