Back to home page

OSCL-LXR

 
 

    


0001 [
0002     {
0003         "id": "5124",
0004         "name": "Add mirred mirror to egress action",
0005         "category": [
0006             "actions",
0007             "mirred"
0008         ],
0009         "setup": [
0010             [
0011                 "$TC actions flush action mirred",
0012                 0,
0013                 1,
0014                 255
0015             ]
0016         ],
0017         "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
0018         "expExitCode": "0",
0019         "verifyCmd": "$TC actions list action mirred",
0020         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
0021         "matchCount": "1",
0022         "teardown": [
0023             "$TC actions flush action mirred"
0024         ]
0025     },
0026     {
0027         "id": "6fb4",
0028         "name": "Add mirred redirect to egress action",
0029         "category": [
0030             "actions",
0031             "mirred"
0032         ],
0033         "setup": [
0034             [
0035                 "$TC actions flush action mirred",
0036                 0,
0037                 1,
0038                 255
0039             ]
0040         ],
0041         "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe",
0042         "expExitCode": "0",
0043         "verifyCmd": "$TC actions list action mirred",
0044         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 2 ref",
0045         "matchCount": "1",
0046         "teardown": [
0047             "$TC actions flush action mirred",
0048             "$TC actions flush action gact"
0049         ]
0050     },
0051     {
0052         "id": "ba38",
0053         "name": "Get mirred actions",
0054         "category": [
0055             "actions",
0056             "mirred"
0057         ],
0058         "setup": [
0059             [
0060                 "$TC actions flush action mirred",
0061                 0,
0062                 1,
0063                 255
0064             ],
0065             "$TC actions add action mirred egress mirror index 1 dev lo",
0066             "$TC actions add action mirred egress redirect index 2 dev lo"
0067         ],
0068         "cmdUnderTest": "$TC actions show action mirred",
0069         "expExitCode": "0",
0070         "verifyCmd": "$TC actions list action mirred",
0071         "matchPattern": "[Mirror|Redirect] to device lo",
0072         "matchCount": "2",
0073         "teardown": [
0074             "$TC actions flush action mirred"
0075         ]
0076     },
0077     {
0078         "id": "d7c0",
0079         "name": "Add invalid mirred direction",
0080         "category": [
0081             "actions",
0082             "mirred"
0083         ],
0084         "setup": [
0085             [
0086                 "$TC actions flush action mirred",
0087                 0,
0088                 1,
0089                 255
0090             ]
0091         ],
0092         "cmdUnderTest": "$TC actions add action mirred inbound mirror index 20 dev lo",
0093         "expExitCode": "255",
0094         "verifyCmd": "$TC actions list action mirred",
0095         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 20 ref",
0096         "matchCount": "0",
0097         "teardown": [
0098             "$TC actions flush action mirred"
0099         ]
0100     },
0101     {
0102         "id": "e213",
0103         "name": "Add invalid mirred action",
0104         "category": [
0105             "actions",
0106             "mirred"
0107         ],
0108         "setup": [
0109             [
0110                 "$TC actions flush action mirred",
0111                 0,
0112                 1,
0113                 255
0114             ]
0115         ],
0116         "cmdUnderTest": "$TC actions add action mirred egress remirror index 20 dev lo",
0117         "expExitCode": "255",
0118         "verifyCmd": "$TC actions list action mirred",
0119         "matchPattern": "action order [0-9]*: mirred \\(Egress.*to device lo\\).*index 20 ref",
0120         "matchCount": "0",
0121         "teardown": [
0122             "$TC actions flush action mirred"
0123         ]
0124     },
0125     {
0126         "id": "2d89",
0127         "name": "Add mirred action with invalid device",
0128         "category": [
0129             "actions",
0130             "mirred"
0131         ],
0132         "setup": [
0133             [
0134                 "$TC actions flush action mirred",
0135                 0,
0136                 1,
0137                 255
0138             ]
0139         ],
0140         "cmdUnderTest": "$TC actions add action mirred egress mirror index 20 dev eltoh",
0141         "expExitCode": "255",
0142         "verifyCmd": "$TC actions list action mirred",
0143         "matchPattern": "action order [0-9]*: mirred \\(.*to device eltoh\\).*index 20 ref",
0144         "matchCount": "0",
0145         "teardown": [
0146             "$TC actions flush action mirred"
0147         ]
0148     },
0149     {
0150         "id": "300b",
0151         "name": "Add mirred action with duplicate index",
0152         "category": [
0153             "actions",
0154             "mirred"
0155         ],
0156         "setup": [
0157             [
0158                 "$TC actions flush action mirred",
0159                 0,
0160                 1,
0161                 255
0162             ],
0163             "$TC actions add action mirred egress redirect index 15 dev lo"
0164         ],
0165         "cmdUnderTest": "$TC actions add action mirred egress mirror index 15 dev lo",
0166         "expExitCode": "255",
0167         "verifyCmd": "$TC actions list action mirred",
0168         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 15 ref",
0169         "matchCount": "1",
0170         "teardown": [
0171             "$TC actions flush action mirred"
0172         ]
0173     },
0174     {
0175         "id": "8917",
0176         "name": "Add mirred mirror action with control pass",
0177         "category": [
0178             "actions",
0179             "mirred"
0180         ],
0181         "setup": [
0182             [
0183                 "$TC actions flush action mirred",
0184                 0,
0185                 1,
0186                 255
0187             ]
0188         ],
0189         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pass index 1",
0190         "expExitCode": "0",
0191         "verifyCmd": "$TC actions get action mirred index 1",
0192         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pass.*index 1 ref",
0193         "matchCount": "1",
0194         "teardown": [
0195             "$TC actions flush action mirred"
0196         ]
0197     },
0198     {
0199         "id": "1054",
0200         "name": "Add mirred mirror action with control pipe",
0201         "category": [
0202             "actions",
0203             "mirred"
0204         ],
0205         "setup": [
0206             [
0207                 "$TC actions flush action mirred",
0208                 0,
0209                 1,
0210                 255
0211             ]
0212         ],
0213         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 15",
0214         "expExitCode": "0",
0215         "verifyCmd": "$TC actions get action mirred index 15",
0216         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 15 ref",
0217         "matchCount": "1",
0218         "teardown": [
0219             "$TC actions flush action mirred"
0220         ]
0221     },
0222     {
0223         "id": "9887",
0224         "name": "Add mirred mirror action with control continue",
0225         "category": [
0226             "actions",
0227             "mirred"
0228         ],
0229         "setup": [
0230             [
0231                 "$TC actions flush action mirred",
0232                 0,
0233                 1,
0234                 255
0235             ]
0236         ],
0237         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo continue index 15",
0238         "expExitCode": "0",
0239         "verifyCmd": "$TC actions get action mirred index 15",
0240         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) continue.*index 15 ref",
0241         "matchCount": "1",
0242         "teardown": [
0243             "$TC actions flush action mirred"
0244         ]
0245     },
0246     {
0247         "id": "e4aa",
0248         "name": "Add mirred mirror action with control reclassify",
0249         "category": [
0250             "actions",
0251             "mirred"
0252         ],
0253         "setup": [
0254             [
0255                 "$TC actions flush action mirred",
0256                 0,
0257                 1,
0258                 255
0259             ]
0260         ],
0261         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo reclassify index 150",
0262         "expExitCode": "0",
0263         "verifyCmd": "$TC actions get action mirred index 150",
0264         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) reclassify.*index 150 ref",
0265         "matchCount": "1",
0266         "teardown": [
0267             "$TC actions flush action mirred"
0268         ]
0269     },
0270     {
0271         "id": "ece9",
0272         "name": "Add mirred mirror action with control drop",
0273         "category": [
0274             "actions",
0275             "mirred"
0276         ],
0277         "setup": [
0278             [
0279                 "$TC actions flush action mirred",
0280                 0,
0281                 1,
0282                 255
0283             ]
0284         ],
0285         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo drop index 99",
0286         "expExitCode": "0",
0287         "verifyCmd": "$TC actions get action mirred index 99",
0288         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) drop.*index 99 ref",
0289         "matchCount": "1",
0290         "teardown": [
0291             "$TC actions flush action mirred"
0292         ]
0293     },
0294     {
0295         "id": "0031",
0296         "name": "Add mirred mirror action with control jump",
0297         "category": [
0298             "actions",
0299             "mirred"
0300         ],
0301         "setup": [
0302             [
0303                 "$TC actions flush action mirred",
0304                 0,
0305                 1,
0306                 255
0307             ]
0308         ],
0309         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo jump 10 index 99",
0310         "expExitCode": "0",
0311         "verifyCmd": "$TC actions get action mirred index 99",
0312         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) jump 10.*index 99 ref",
0313         "matchCount": "1",
0314         "teardown": [
0315             "$TC actions flush action mirred"
0316         ]
0317     },
0318     {
0319         "id": "407c",
0320         "name": "Add mirred mirror action with cookie",
0321         "category": [
0322             "actions",
0323             "mirred"
0324         ],
0325         "setup": [
0326             [
0327                 "$TC actions flush action mirred",
0328                 0,
0329                 1,
0330                 255
0331             ]
0332         ],
0333         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo reclassify cookie aa11bb22cc33dd44ee55",
0334         "expExitCode": "0",
0335         "verifyCmd": "$TC actions ls action mirred",
0336         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) reclassify.*cookie aa11bb22cc33dd44ee55",
0337         "matchCount": "1",
0338         "teardown": [
0339             "$TC actions flush action mirred"
0340         ]
0341     },
0342     {
0343         "id": "8b69",
0344         "name": "Add mirred mirror action with index at 32-bit maximum",
0345         "category": [
0346             "actions",
0347             "mirred"
0348         ],
0349         "setup": [
0350             [
0351                 "$TC actions flush action mirred",
0352                 0,
0353                 1,
0354                 255
0355             ]
0356         ],
0357         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 4294967295",
0358         "expExitCode": "0",
0359         "verifyCmd": "$TC actions get action mirred index 4294967295",
0360         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 4294967295",
0361         "matchCount": "1",
0362         "teardown": [
0363             "$TC actions flush action mirred"
0364         ]
0365     },
0366     {
0367         "id": "3f66",
0368         "name": "Add mirred mirror action with index exceeding 32-bit maximum",
0369         "category": [
0370             "actions",
0371             "mirred"
0372         ],
0373         "setup": [
0374             [
0375                 "$TC actions flush action mirred",
0376                 0,
0377                 1,
0378                 255
0379             ]
0380         ],
0381         "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 429496729555",
0382         "expExitCode": "255",
0383         "verifyCmd": "$TC actions get action mirred index 429496729555",
0384         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 429496729555",
0385         "matchCount": "0",
0386         "teardown": []
0387     },
0388     {
0389         "id": "a70e",
0390         "name": "Delete mirred mirror action",
0391         "category": [
0392             "actions",
0393             "mirred"
0394         ],
0395         "setup": [
0396             [
0397                 "$TC actions flush action mirred",
0398                 0,
0399                 1,
0400                 255
0401             ],
0402             "$TC actions add action mirred egress mirror index 5 dev lo"
0403         ],
0404         "cmdUnderTest": "$TC actions del action mirred index 5",
0405         "expExitCode": "0",
0406         "verifyCmd": "$TC actions list action mirred",
0407         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 5 ref",
0408         "matchCount": "0",
0409         "teardown": [
0410             "$TC actions flush action mirred"
0411         ]
0412     },
0413     {
0414         "id": "3fb3",
0415         "name": "Delete mirred redirect action",
0416         "category": [
0417             "actions",
0418             "mirred"
0419         ],
0420         "setup": [
0421             [
0422                 "$TC actions flush action mirred",
0423                 0,
0424                 1,
0425                 255
0426             ],
0427             "$TC actions add action mirred egress redirect index 5 dev lo"
0428         ],
0429         "cmdUnderTest": "$TC actions del action mirred index 5",
0430         "expExitCode": "0",
0431         "verifyCmd": "$TC actions list action mirred",
0432         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 5 ref",
0433         "matchCount": "0",
0434         "teardown": [
0435             "$TC actions flush action mirred"
0436         ]
0437     },
0438     {
0439         "id": "2a9a",
0440         "name": "Replace mirred action with invalid goto chain control",
0441         "category": [
0442             "actions",
0443             "mirred"
0444         ],
0445         "setup": [
0446             [
0447                 "$TC actions flush action mirred",
0448                 0,
0449                 1,
0450                 255
0451             ],
0452             "$TC actions add action mirred ingress mirror dev lo drop index 90"
0453         ],
0454         "cmdUnderTest": "$TC actions replace action mirred ingress mirror dev lo goto chain 42 index 90 cookie c1a0c1a0",
0455         "expExitCode": "255",
0456         "verifyCmd": "$TC actions get action mirred index 90",
0457         "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) drop.*index 90 ref",
0458         "matchCount": "1",
0459         "teardown": [
0460             "$TC actions flush action mirred"
0461         ]
0462     },
0463     {
0464         "id": "4749",
0465         "name": "Add batch of 32 mirred redirect egress actions with cookie",
0466         "category": [
0467             "actions",
0468             "mirred"
0469         ],
0470         "setup": [
0471             [
0472                 "$TC actions flush action mirred",
0473                 0,
0474                 1,
0475                 255
0476             ]
0477         ],
0478         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred egress redirect dev lo index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
0479         "expExitCode": "0",
0480         "verifyCmd": "$TC actions list action mirred",
0481         "matchPattern": "^[ \t]+index [0-9]+ ref",
0482         "matchCount": "32",
0483         "teardown": [
0484             "$TC actions flush action mirred"
0485         ]
0486     },
0487     {
0488         "id": "5c69",
0489         "name": "Delete batch of 32 mirred redirect egress actions",
0490         "category": [
0491             "actions",
0492             "mirred"
0493         ],
0494         "setup": [
0495             [
0496                 "$TC actions flush action mirred",
0497                 0,
0498                 1,
0499                 255
0500             ],
0501             "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred egress redirect dev lo index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
0502         ],
0503         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
0504         "expExitCode": "0",
0505         "verifyCmd": "$TC actions list action mirred",
0506         "matchPattern": "^[ \t]+index [0-9]+ ref",
0507         "matchCount": "0",
0508         "teardown": []
0509     },
0510     {
0511         "id": "d3c0",
0512         "name": "Add batch of 32 mirred mirror ingress actions with cookie",
0513         "category": [
0514             "actions",
0515             "mirred"
0516         ],
0517         "setup": [
0518             [
0519                 "$TC actions flush action mirred",
0520                 0,
0521                 1,
0522                 255
0523             ]
0524         ],
0525         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred ingress mirror dev lo index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
0526         "expExitCode": "0",
0527         "verifyCmd": "$TC actions list action mirred",
0528         "matchPattern": "^[ \t]+index [0-9]+ ref",
0529         "matchCount": "32",
0530         "teardown": [
0531             "$TC actions flush action mirred"
0532         ]
0533     },
0534     {
0535         "id": "e684",
0536         "name": "Delete batch of 32 mirred mirror ingress actions",
0537         "category": [
0538             "actions",
0539             "mirred"
0540         ],
0541         "setup": [
0542             [
0543                 "$TC actions flush action mirred",
0544                 0,
0545                 1,
0546                 255
0547             ],
0548             "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred ingress mirror dev lo index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
0549         ],
0550         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action mirred index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
0551         "expExitCode": "0",
0552         "verifyCmd": "$TC actions list action mirred",
0553         "matchPattern": "^[ \t]+index [0-9]+ ref",
0554         "matchCount": "0",
0555         "teardown": []
0556     },
0557     {
0558         "id": "31e3",
0559         "name": "Add mirred mirror to egress action with no_percpu flag",
0560         "category": [
0561             "actions",
0562             "mirred"
0563         ],
0564         "setup": [
0565             [
0566                 "$TC actions flush action mirred",
0567                 0,
0568                 1,
0569                 255
0570             ]
0571         ],
0572         "cmdUnderTest": "$TC actions add action mirred egress mirror dev lo no_percpu",
0573         "expExitCode": "0",
0574         "verifyCmd": "$TC actions list action mirred",
0575         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*no_percpu",
0576         "matchCount": "1",
0577         "teardown": [
0578             "$TC actions flush action mirred"
0579         ]
0580     }
0581 ]