Back to home page

OSCL-LXR

 
 

    


0001 [
0002     {
0003         "id": "7d50",
0004         "name": "Add skbmod action to set destination mac",
0005         "category": [
0006             "actions",
0007             "skbmod"
0008         ],
0009         "setup": [
0010             [
0011                 "$TC actions flush action skbmod",
0012                 0,
0013                 1,
0014                 255
0015             ]
0016         ],
0017         "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
0018         "expExitCode": "0",
0019         "verifyCmd": "$TC actions ls action skbmod",
0020         "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
0021         "matchCount": "1",
0022         "teardown": [
0023             "$TC actions flush action skbmod"
0024         ]
0025     },
0026     {
0027         "id": "9b29",
0028         "name": "Add skbmod action to set source mac",
0029         "category": [
0030             "actions",
0031             "skbmod"
0032         ],
0033         "setup": [
0034             [
0035                 "$TC actions flush action skbmod",
0036                 0,
0037                 1,
0038                 255
0039             ]
0040         ],
0041         "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
0042         "expExitCode": "0",
0043         "verifyCmd": "$TC actions get action skbmod index 7",
0044         "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
0045         "matchCount": "1",
0046         "teardown": [
0047             "$TC actions flush action skbmod"
0048         ]
0049     },
0050     {
0051         "id": "1724",
0052         "name": "Add skbmod action with invalid mac",
0053         "category": [
0054             "actions",
0055             "skbmod"
0056         ],
0057         "setup": [
0058             [
0059                 "$TC actions flush action skbmod",
0060                 0,
0061                 1,
0062                 255
0063             ]
0064         ],
0065         "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
0066         "expExitCode": "255",
0067         "verifyCmd": "$TC actions ls action skbmod",
0068         "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
0069         "matchCount": "0",
0070         "teardown": [
0071             "$TC actions flush action skbmod"
0072         ]
0073     },
0074     {
0075         "id": "3cf1",
0076         "name": "Add skbmod action with valid etype",
0077         "category": [
0078             "actions",
0079             "skbmod"
0080         ],
0081         "setup": [
0082             [
0083                 "$TC actions flush action skbmod",
0084                 0,
0085                 1,
0086                 255
0087             ]
0088         ],
0089         "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
0090         "expExitCode": "0",
0091         "verifyCmd": "$TC actions ls action skbmod",
0092         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
0093         "matchCount": "1",
0094         "teardown": [
0095             "$TC actions flush action skbmod"
0096         ]
0097     },
0098     {
0099         "id": "a749",
0100         "name": "Add skbmod action with invalid etype",
0101         "category": [
0102             "actions",
0103             "skbmod"
0104         ],
0105         "setup": [
0106             [
0107                 "$TC actions flush action skbmod",
0108                 0,
0109                 1,
0110                 255
0111             ]
0112         ],
0113         "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
0114         "expExitCode": "255",
0115         "verifyCmd": "$TC actions ls action skbmod",
0116         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
0117         "matchCount": "0",
0118         "teardown": [
0119             "$TC actions flush action skbmod"
0120         ]
0121     },
0122     {
0123         "id": "bfe6",
0124         "name": "Add skbmod action to swap mac",
0125         "category": [
0126             "actions",
0127             "skbmod"
0128         ],
0129         "setup": [
0130             [
0131                 "$TC actions flush action skbmod",
0132                 0,
0133                 1,
0134                 255
0135             ]
0136         ],
0137         "cmdUnderTest": "$TC actions add action skbmod swap mac",
0138         "expExitCode": "0",
0139         "verifyCmd": "$TC actions get action skbmod index 1",
0140         "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
0141         "matchCount": "1",
0142         "teardown": [
0143             "$TC actions flush action skbmod"
0144         ]
0145     },
0146     {
0147         "id": "839b",
0148         "name": "Add skbmod action with control pipe",
0149         "category": [
0150             "actions",
0151             "skbmod"
0152         ],
0153         "setup": [
0154             [
0155                 "$TC actions flush action skbmod",
0156                 0,
0157                 1,
0158                 255
0159             ]
0160         ],
0161         "cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
0162         "expExitCode": "0",
0163         "verifyCmd": "$TC actions ls action skbmod",
0164         "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
0165         "matchCount": "1",
0166         "teardown": [
0167             "$TC actions flush action skbmod"
0168         ]
0169     },
0170     {
0171         "id": "c167",
0172         "name": "Add skbmod action with control reclassify",
0173         "category": [
0174             "actions",
0175             "skbmod"
0176         ],
0177         "setup": [
0178             [
0179                 "$TC actions flush action skbmod",
0180                 0,
0181                 1,
0182                 255
0183             ]
0184         ],
0185         "cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify",
0186         "expExitCode": "0",
0187         "verifyCmd": "$TC actions ls action skbmod",
0188         "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
0189         "matchCount": "1",
0190         "teardown": [
0191             "$TC actions flush action skbmod"
0192         ]
0193     },
0194     {
0195         "id": "0c2f",
0196         "name": "Add skbmod action with control drop",
0197         "category": [
0198             "actions",
0199             "skbmod"
0200         ],
0201         "setup": [
0202             [
0203                 "$TC actions flush action skbmod",
0204                 0,
0205                 1,
0206                 255
0207             ]
0208         ],
0209         "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
0210         "expExitCode": "0",
0211         "verifyCmd": "$TC actions get action skbmod index 1",
0212         "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
0213         "matchCount": "1",
0214         "teardown": [
0215             "$TC actions flush action skbmod"
0216         ]
0217     },
0218     {
0219         "id": "d113",
0220         "name": "Add skbmod action with control continue",
0221         "category": [
0222             "actions",
0223             "skbmod"
0224         ],
0225         "setup": [
0226             [
0227                 "$TC actions flush action skbmod",
0228                 0,
0229                 1,
0230                 255
0231             ]
0232         ],
0233         "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
0234         "expExitCode": "0",
0235         "verifyCmd": "$TC actions ls action skbmod",
0236         "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
0237         "matchCount": "1",
0238         "teardown": [
0239             "$TC actions flush action skbmod"
0240         ]
0241     },
0242     {
0243         "id": "7242",
0244         "name": "Add skbmod action with control pass",
0245         "category": [
0246             "actions",
0247             "skbmod"
0248         ],
0249         "setup": [
0250             [
0251                 "$TC actions flush action skbmod",
0252                 0,
0253                 1,
0254                 255
0255             ]
0256         ],
0257         "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
0258         "expExitCode": "0",
0259         "verifyCmd": "$TC actions ls action skbmod",
0260         "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
0261         "matchCount": "1",
0262         "teardown": [
0263             "$TC actions flush action skbmod"
0264         ]
0265     },
0266     {
0267         "id": "6046",
0268         "name": "Add skbmod action with control reclassify and cookie",
0269         "category": [
0270             "actions",
0271             "skbmod"
0272         ],
0273         "setup": [
0274             [
0275                 "$TC actions flush action skbmod",
0276                 0,
0277                 1,
0278                 255
0279             ]
0280         ],
0281         "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22",
0282         "expExitCode": "0",
0283         "verifyCmd": "$TC actions get action skbmod index 1",
0284         "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22",
0285         "matchCount": "1",
0286         "teardown": [
0287             "$TC actions flush action skbmod"
0288         ]
0289     },
0290     {
0291         "id": "58cb",
0292         "name": "List skbmod actions",
0293         "category": [
0294             "actions",
0295             "skbmod"
0296         ],
0297         "setup": [
0298             [
0299                 "$TC actions flush action skbmod",
0300                 0,
0301                 1,
0302                 255
0303             ],
0304             "$TC actions add action skbmod set etype 0x0001",
0305             "$TC actions add action skbmod set etype 0x0011",
0306             "$TC actions add action skbmod set etype 0x0021",
0307             "$TC actions add action skbmod set etype 0x0031",
0308             "$TC actions add action skbmod set etype 0x0041"
0309         ],
0310         "cmdUnderTest": "$TC actions ls action skbmod",
0311         "expExitCode": "0",
0312         "verifyCmd": "$TC actions ls action skbmod",
0313         "matchPattern": "action order [0-9]*: skbmod",
0314         "matchCount": "5",
0315         "teardown": [
0316             "$TC actions flush action skbmod"
0317         ]
0318     },
0319     {
0320         "id": "9aa8",
0321         "name": "Get a single skbmod action from a list",
0322         "category": [
0323             "actions",
0324             "skbmod"
0325         ],
0326         "setup": [
0327             [
0328                 "$TC actions flush action skbmod",
0329                 0,
0330                 1,
0331                 255
0332             ],
0333             "$TC actions add action skbmod set etype 0x0001",
0334             "$TC actions add action skbmod set etype 0x0011",
0335             "$TC actions add action skbmod set etype 0x0021",
0336             "$TC actions add action skbmod set etype 0x0031",
0337             "$TC actions add action skbmod set etype 0x0041"
0338         ],
0339         "cmdUnderTest": "$TC actions ls action skbmod",
0340         "expExitCode": "0",
0341         "verifyCmd": "$TC actions get action skbmod index 4",
0342         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31",
0343         "matchCount": "1",
0344         "teardown": [
0345             "$TC actions flush action skbmod"
0346         ]
0347     },
0348     {
0349         "id": "e93a",
0350         "name": "Delete an skbmod action",
0351         "category": [
0352             "actions",
0353             "skbmod"
0354         ],
0355         "setup": [
0356             [
0357                 "$TC actions flush action skbmod",
0358                 0,
0359                 1,
0360                 255
0361             ],
0362             "$TC actions add action skbmod set etype 0x1111 index 909"
0363         ],
0364         "cmdUnderTest": "$TC actions del action skbmod index 909",
0365         "expExitCode": "0",
0366         "verifyCmd": "$TC actions ls action skbmod",
0367         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
0368         "matchCount": "0",
0369         "teardown": [
0370             "$TC actions flush action skbmod"
0371         ]
0372     },
0373     {
0374         "id": "40c2",
0375         "name": "Flush skbmod actions",
0376         "category": [
0377             "actions",
0378             "skbmod"
0379         ],
0380         "setup": [
0381             "$TC actions add action skbmod set etype 0x0001",
0382             "$TC actions add action skbmod set etype 0x0011",
0383             "$TC actions add action skbmod set etype 0x0021",
0384             "$TC actions add action skbmod set etype 0x0031",
0385             "$TC actions add action skbmod set etype 0x0041"
0386         ],
0387         "cmdUnderTest": "$TC actions flush action skbmod",
0388         "expExitCode": "0",
0389         "verifyCmd": "$TC actions ls action skbmod",
0390         "matchPattern": "action order [0-9]*: skbmod",
0391         "matchCount": "0",
0392         "teardown": [
0393             "$TC actions flush action skbmod"
0394         ]
0395     },
0396     {
0397         "id": "b651",
0398         "name": "Replace skbmod action with invalid goto_chain control",
0399         "category": [
0400             "actions",
0401             "skbmod"
0402         ],
0403         "setup": [
0404             [
0405                 "$TC actions flush action skbmod",
0406                 0,
0407                 1,
0408                 255
0409             ],
0410             "$TC actions add action skbmod set etype 0x1111 pass index 90"
0411         ],
0412         "cmdUnderTest": "$TC actions replace action skbmod set etype 0x1111 goto chain 42 index 90 cookie c1a0c1a0",
0413         "expExitCode": "255",
0414         "verifyCmd": "$TC actions ls action skbmod",
0415         "matchPattern": "action order [0-9]*: skbmod pass set etype 0x1111\\s+index 90 ref",
0416         "matchCount": "1",
0417         "teardown": [
0418             "$TC actions flush action skbmod"
0419         ]
0420     },
0421     {
0422         "id": "fe09",
0423         "name": "Add skbmod action to mark ECN bits",
0424         "category": [
0425             "actions",
0426             "skbmod"
0427         ],
0428         "setup": [
0429             [
0430                 "$TC actions flush action skbmod",
0431                 0,
0432                 1,
0433                 255
0434             ]
0435         ],
0436         "cmdUnderTest": "$TC actions add action skbmod ecn",
0437         "expExitCode": "0",
0438         "verifyCmd": "$TC actions get action skbmod index 1",
0439         "matchPattern": "action order [0-9]*: skbmod pipe ecn",
0440         "matchCount": "1",
0441         "teardown": [
0442             "$TC actions flush action skbmod"
0443         ]
0444     }
0445 ]