hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/filters/fw.json
....@@ -6,6 +6,9 @@
66 "filter",
77 "fw"
88 ],
9
+ "plugins": {
10
+ "requires": "nsPlugin"
11
+ },
912 "setup": [
1013 "$TC qdisc add dev $DEV1 ingress"
1114 ],
....@@ -25,6 +28,9 @@
2528 "filter",
2629 "fw"
2730 ],
31
+ "plugins": {
32
+ "requires": "nsPlugin"
33
+ },
2834 "setup": [
2935 "$TC qdisc add dev $DEV1 ingress"
3036 ],
....@@ -44,6 +50,114 @@
4450 "filter",
4551 "fw"
4652 ],
53
+ "plugins": {
54
+ "requires": "nsPlugin"
55
+ },
56
+ "plugins": {
57
+ "requires": "nsPlugin"
58
+ },
59
+ "plugins": {
60
+ "requires": "nsPlugin"
61
+ },
62
+ "plugins": {
63
+ "requires": "nsPlugin"
64
+ },
65
+ "plugins": {
66
+ "requires": "nsPlugin"
67
+ },
68
+ "plugins": {
69
+ "requires": "nsPlugin"
70
+ },
71
+ "plugins": {
72
+ "requires": "nsPlugin"
73
+ },
74
+ "plugins": {
75
+ "requires": "nsPlugin"
76
+ },
77
+ "plugins": {
78
+ "requires": "nsPlugin"
79
+ },
80
+ "plugins": {
81
+ "requires": "nsPlugin"
82
+ },
83
+ "plugins": {
84
+ "requires": "nsPlugin"
85
+ },
86
+ "plugins": {
87
+ "requires": "nsPlugin"
88
+ },
89
+ "plugins": {
90
+ "requires": "nsPlugin"
91
+ },
92
+ "plugins": {
93
+ "requires": "nsPlugin"
94
+ },
95
+ "plugins": {
96
+ "requires": "nsPlugin"
97
+ },
98
+ "plugins": {
99
+ "requires": "nsPlugin"
100
+ },
101
+ "plugins": {
102
+ "requires": "nsPlugin"
103
+ },
104
+ "plugins": {
105
+ "requires": "nsPlugin"
106
+ },
107
+ "plugins": {
108
+ "requires": "nsPlugin"
109
+ },
110
+ "plugins": {
111
+ "requires": "nsPlugin"
112
+ },
113
+ "plugins": {
114
+ "requires": "nsPlugin"
115
+ },
116
+ "plugins": {
117
+ "requires": "nsPlugin"
118
+ },
119
+ "plugins": {
120
+ "requires": "nsPlugin"
121
+ },
122
+ "plugins": {
123
+ "requires": "nsPlugin"
124
+ },
125
+ "plugins": {
126
+ "requires": "nsPlugin"
127
+ },
128
+ "plugins": {
129
+ "requires": "nsPlugin"
130
+ },
131
+ "plugins": {
132
+ "requires": "nsPlugin"
133
+ },
134
+ "plugins": {
135
+ "requires": "nsPlugin"
136
+ },
137
+ "plugins": {
138
+ "requires": "nsPlugin"
139
+ },
140
+ "plugins": {
141
+ "requires": "nsPlugin"
142
+ },
143
+ "plugins": {
144
+ "requires": "nsPlugin"
145
+ },
146
+ "plugins": {
147
+ "requires": "nsPlugin"
148
+ },
149
+ "plugins": {
150
+ "requires": "nsPlugin"
151
+ },
152
+ "plugins": {
153
+ "requires": "nsPlugin"
154
+ },
155
+ "plugins": {
156
+ "requires": "nsPlugin"
157
+ },
158
+ "plugins": {
159
+ "requires": "nsPlugin"
160
+ },
47161 "setup": [
48162 "$TC qdisc add dev $DEV1 ingress"
49163 ],
....@@ -54,6 +168,30 @@
54168 "matchCount": "1",
55169 "teardown": [
56170 "$TC qdisc del dev $DEV1 ingress"
171
+ ]
172
+ },
173
+ {
174
+ "id": "c591",
175
+ "name": "Add fw filter with action ok by reference",
176
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet. Remove this when the behaviour is fixed.",
177
+ "category": [
178
+ "filter",
179
+ "fw"
180
+ ],
181
+ "setup": [
182
+ "$TC qdisc add dev $DEV1 ingress",
183
+ "/bin/sleep 1",
184
+ "$TC actions add action gact ok index 1"
185
+ ],
186
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
187
+ "expExitCode": "0",
188
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
189
+ "matchPattern": "handle 0x1.*gact action pass.*index 1 ref 2 bind 1",
190
+ "matchCount": "1",
191
+ "teardown": [
192
+ "$TC qdisc del dev $DEV1 ingress",
193
+ "/bin/sleep 1",
194
+ "$TC actions del action gact index 1"
57195 ]
58196 },
59197 {
....@@ -76,6 +214,30 @@
76214 ]
77215 },
78216 {
217
+ "id": "38b3",
218
+ "name": "Add fw filter with action continue by reference",
219
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet. Remove this when the behaviour is fixed.",
220
+ "category": [
221
+ "filter",
222
+ "fw"
223
+ ],
224
+ "setup": [
225
+ "$TC qdisc add dev $DEV1 ingress",
226
+ "/bin/sleep 1",
227
+ "$TC actions add action gact continue index 1"
228
+ ],
229
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
230
+ "expExitCode": "0",
231
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
232
+ "matchPattern": "handle 0x1.*gact action continue.*index 1 ref 2 bind 1",
233
+ "matchCount": "1",
234
+ "teardown": [
235
+ "$TC qdisc del dev $DEV1 ingress",
236
+ "/bin/sleep 1",
237
+ "$TC actions del action gact index 1"
238
+ ]
239
+ },
240
+ {
79241 "id": "28bc",
80242 "name": "Add fw filter with action pipe",
81243 "category": [
....@@ -92,6 +254,30 @@
92254 "matchCount": "1",
93255 "teardown": [
94256 "$TC qdisc del dev $DEV1 ingress"
257
+ ]
258
+ },
259
+ {
260
+ "id": "6753",
261
+ "name": "Add fw filter with action pipe by reference",
262
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet.",
263
+ "category": [
264
+ "filter",
265
+ "fw"
266
+ ],
267
+ "setup": [
268
+ "$TC qdisc add dev $DEV1 ingress",
269
+ "/bin/sleep 1",
270
+ "$TC actions add action gact pipe index 1"
271
+ ],
272
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
273
+ "expExitCode": "0",
274
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
275
+ "matchPattern": "handle 0x1.*gact action pipe.*index 1 ref 2 bind 1",
276
+ "matchCount": "1",
277
+ "teardown": [
278
+ "$TC qdisc del dev $DEV1 ingress",
279
+ "/bin/sleep 1",
280
+ "$TC actions del action gact index 1"
95281 ]
96282 },
97283 {
....@@ -114,6 +300,30 @@
114300 ]
115301 },
116302 {
303
+ "id": "6dc6",
304
+ "name": "Add fw filter with action drop by reference",
305
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet.",
306
+ "category": [
307
+ "filter",
308
+ "fw"
309
+ ],
310
+ "setup": [
311
+ "$TC qdisc add dev $DEV1 ingress",
312
+ "/bin/sleep 1",
313
+ "$TC actions add action gact drop index 1"
314
+ ],
315
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
316
+ "expExitCode": "0",
317
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
318
+ "matchPattern": "handle 0x1.*gact action drop.*index 1 ref 2 bind 1",
319
+ "matchCount": "1",
320
+ "teardown": [
321
+ "$TC qdisc del dev $DEV1 ingress",
322
+ "/bin/sleep 1",
323
+ "$TC actions del action gact index 1"
324
+ ]
325
+ },
326
+ {
117327 "id": "9436",
118328 "name": "Add fw filter with action reclassify",
119329 "category": [
....@@ -133,6 +343,30 @@
133343 ]
134344 },
135345 {
346
+ "id": "3bc2",
347
+ "name": "Add fw filter with action reclassify by reference",
348
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet.",
349
+ "category": [
350
+ "filter",
351
+ "fw"
352
+ ],
353
+ "setup": [
354
+ "$TC qdisc add dev $DEV1 ingress",
355
+ "/bin/sleep 1",
356
+ "$TC actions add action gact reclassify index 1"
357
+ ],
358
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
359
+ "expExitCode": "0",
360
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
361
+ "matchPattern": "handle 0x1.*gact action reclassify.*index 1 ref 2 bind 1",
362
+ "matchCount": "1",
363
+ "teardown": [
364
+ "$TC qdisc del dev $DEV1 ingress",
365
+ "/bin/sleep 1",
366
+ "$TC actions del action gact index 1"
367
+ ]
368
+ },
369
+ {
136370 "id": "95bb",
137371 "name": "Add fw filter with action jump 10",
138372 "category": [
....@@ -149,6 +383,30 @@
149383 "matchCount": "1",
150384 "teardown": [
151385 "$TC qdisc del dev $DEV1 ingress"
386
+ ]
387
+ },
388
+ {
389
+ "id": "36f7",
390
+ "name": "Add fw filter with action jump 10 by reference",
391
+ "__comment": "We add sleep here because action might have not been deleted by workqueue just yet.",
392
+ "category": [
393
+ "filter",
394
+ "fw"
395
+ ],
396
+ "setup": [
397
+ "$TC qdisc add dev $DEV1 ingress",
398
+ "/bin/sleep 1",
399
+ "$TC actions add action gact jump 10 index 1"
400
+ ],
401
+ "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
402
+ "expExitCode": "0",
403
+ "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
404
+ "matchPattern": "handle 0x1.*gact action jump 10.*index 1 ref 2 bind 1",
405
+ "matchCount": "1",
406
+ "teardown": [
407
+ "$TC qdisc del dev $DEV1 ingress",
408
+ "/bin/sleep 1",
409
+ "$TC actions del action gact index 1"
152410 ]
153411 },
154412 {
....@@ -728,6 +986,9 @@
728986 "filter",
729987 "fw"
730988 ],
989
+ "plugins": {
990
+ "requires": "nsPlugin"
991
+ },
731992 "setup": [
732993 "$TC qdisc add dev $DEV1 ingress",
733994 "$TC filter add dev $DEV1 parent ffff: protocol 802_3 prio 3 handle 7 fw action ok"
....@@ -748,6 +1009,9 @@
7481009 "filter",
7491010 "fw"
7501011 ],
1012
+ "plugins": {
1013
+ "requires": "nsPlugin"
1014
+ },
7511015 "setup": [
7521016 "$TC qdisc add dev $DEV1 ingress",
7531017 "$TC filter add dev $DEV1 parent ffff: prio 6 handle 2 fw action continue index 5"
....@@ -768,6 +1032,9 @@
7681032 "filter",
7691033 "fw"
7701034 ],
1035
+ "plugins": {
1036
+ "requires": "nsPlugin"
1037
+ },
7711038 "setup": [
7721039 "$TC qdisc add dev $DEV1 ingress"
7731040 ],
....@@ -787,6 +1054,9 @@
7871054 "filter",
7881055 "fw"
7891056 ],
1057
+ "plugins": {
1058
+ "requires": "nsPlugin"
1059
+ },
7901060 "setup": [
7911061 "$TC qdisc add dev $DEV1 ingress"
7921062 ],
....@@ -806,6 +1076,9 @@
8061076 "filter",
8071077 "fw"
8081078 ],
1079
+ "plugins": {
1080
+ "requires": "nsPlugin"
1081
+ },
8091082 "setup": [
8101083 "$TC qdisc add dev $DEV1 ingress",
8111084 "$TC filter add dev $DEV1 parent ffff: handle 5 prio 7 fw action pass",
....@@ -828,6 +1101,9 @@
8281101 "filter",
8291102 "fw"
8301103 ],
1104
+ "plugins": {
1105
+ "requires": "nsPlugin"
1106
+ },
8311107 "setup": [
8321108 "$TC qdisc add dev $DEV1 ingress",
8331109 "$TC filter add dev $DEV1 parent ffff: handle 5 prio 7 fw action pass",
....@@ -850,6 +1126,9 @@
8501126 "filter",
8511127 "fw"
8521128 ],
1129
+ "plugins": {
1130
+ "requires": "nsPlugin"
1131
+ },
8531132 "setup": [
8541133 "$TC qdisc add dev $DEV1 ingress",
8551134 "$TC filter add dev $DEV1 parent ffff: handle 5 prio 7 fw action pass",
....@@ -871,6 +1150,9 @@
8711150 "filter",
8721151 "fw"
8731152 ],
1153
+ "plugins": {
1154
+ "requires": "nsPlugin"
1155
+ },
8741156 "setup": [
8751157 "$TC qdisc add dev $DEV1 ingress",
8761158 "$TC filter add dev $DEV1 parent ffff: handle 1 prio 4 fw action ok",
....@@ -892,6 +1174,9 @@
8921174 "filter",
8931175 "fw"
8941176 ],
1177
+ "plugins": {
1178
+ "requires": "nsPlugin"
1179
+ },
8951180 "setup": [
8961181 "$TC qdisc add dev $DEV1 ingress",
8971182 "$TC filter add dev $DEV1 parent ffff: handle 4 prio 2 chain 13 fw action pipe",
....@@ -913,6 +1198,9 @@
9131198 "filter",
9141199 "fw"
9151200 ],
1201
+ "plugins": {
1202
+ "requires": "nsPlugin"
1203
+ },
9161204 "setup": [
9171205 "$TC qdisc add dev $DEV1 ingress",
9181206 "$TC filter add dev $DEV1 parent ffff: handle 2 prio 4 fw action drop"
....@@ -933,6 +1221,9 @@
9331221 "filter",
9341222 "fw"
9351223 ],
1224
+ "plugins": {
1225
+ "requires": "nsPlugin"
1226
+ },
9361227 "setup": [
9371228 "$TC qdisc add dev $DEV1 ingress",
9381229 "$TC filter add dev $DEV1 parent ffff: handle 3 prio 4 fw action continue"
....@@ -953,6 +1244,9 @@
9531244 "filter",
9541245 "fw"
9551246 ],
1247
+ "plugins": {
1248
+ "requires": "nsPlugin"
1249
+ },
9561250 "setup": [
9571251 "$TC qdisc add dev $DEV1 ingress",
9581252 "$TC filter add dev $DEV1 parent ffff: handle 4 prio 2 protocol arp fw action pipe"
....@@ -973,6 +1267,9 @@
9731267 "filter",
9741268 "fw"
9751269 ],
1270
+ "plugins": {
1271
+ "requires": "nsPlugin"
1272
+ },
9761273 "setup": [
9771274 "$TC qdisc add dev $DEV1 ingress",
9781275 "$TC filter add dev $DEV1 parent ffff: handle 4 prio 2 fw action pipe flowid 45"
....@@ -993,6 +1290,9 @@
9931290 "filter",
9941291 "fw"
9951292 ],
1293
+ "plugins": {
1294
+ "requires": "nsPlugin"
1295
+ },
9961296 "setup": [
9971297 "$TC qdisc add dev $DEV1 ingress",
9981298 "$TC filter add dev $DEV1 parent ffff: handle 1 prio 2 fw action ok"
....@@ -1013,6 +1313,9 @@
10131313 "filter",
10141314 "fw"
10151315 ],
1316
+ "plugins": {
1317
+ "requires": "nsPlugin"
1318
+ },
10161319 "setup": [
10171320 "$TC qdisc add dev $DEV1 ingress",
10181321 "$TC filter add dev $DEV1 parent ffff: handle 1 prio 2 fw action ok"
....@@ -1033,6 +1336,9 @@
10331336 "filter",
10341337 "fw"
10351338 ],
1339
+ "plugins": {
1340
+ "requires": "nsPlugin"
1341
+ },
10361342 "setup": [
10371343 "$TC qdisc add dev $DEV1 ingress",
10381344 "$TC filter add dev $DEV1 parent ffff: handle 1 prio 2 fw action ok index 3"