]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tc-tests: add an extreme-case csum action test
authorKeara Leibovitz <kleib@mojatatu.com>
Tue, 26 Jun 2018 14:16:28 +0000 (10:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 05:23:57 +0000 (14:23 +0900)
Added an extreme-case test for all 7 csum action headers.

Signed-off-by: Keara Leibovitz <kleib@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/csum.json

index 3a2f51fc7fd457368d7e3a92e1d8187431ce1c5d..a022792d392a9c93bf4c33d049ea7c817b85eded 100644 (file)
             "$TC actions flush action csum"
         ]
     },
+    {
+        "id": "b10b",
+        "name": "Add all 7 csum actions",
+        "category": [
+            "actions",
+            "csum"
+        ],
+        "setup": [
+            [
+                "$TC actions flush action csum",
+                0,
+                1,
+                255
+            ]
+        ],
+        "cmdUnderTest": "$TC actions add action csum icmp ip4h sctp igmp udplite udp tcp index 7",
+        "expExitCode": "0",
+        "verifyCmd": "$TC actions get action csum index 7",
+        "matchPattern": "action order [0-9]*: csum \\(iph, icmp, igmp, tcp, udp, udplite, sctp\\).*index 7 ref",
+        "matchCount": "1",
+        "teardown": [
+            "$TC actions flush action csum"
+        ]
+    },
     {
         "id": "ce92",
         "name": "Add csum udp action with cookie",