Back to home page

OSCL-LXR

 
 

    


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