test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts][PATCH V2 2/5] tests/ice_ip_fragment_rte_flow:extend mismatch pkts
Date: Tue, 24 May 2022 11:00:45 +0800	[thread overview]
Message-ID: <20220524030048.34627-2-zhiminx.huang@intel.com> (raw)
In-Reply-To: <20220524030048.34627-1-zhiminx.huang@intel.com>

mismatch pkt should cover mismatch inputset pkts and mismatch pattern pkts.
extend mismatch pkts to cover more test.

V2:
fix format issue

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
---
 tests/TestSuite_ice_ip_fragment_rte_flow.py | 60 ++++++++++++++++-----
 1 file changed, 48 insertions(+), 12 deletions(-)

diff --git a/tests/TestSuite_ice_ip_fragment_rte_flow.py b/tests/TestSuite_ice_ip_fragment_rte_flow.py
index 3acf3250..f7b816e4 100644
--- a/tests/TestSuite_ice_ip_fragment_rte_flow.py
+++ b/tests/TestSuite_ice_ip_fragment_rte_flow.py
@@ -48,7 +48,10 @@ tv_mac_ipv4_frag_fdir_queue_index = {
     "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0},
 }
@@ -60,7 +63,10 @@ tv_mac_ipv4_frag_fdir_rss_queues = {
     ],
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0},
 }
@@ -70,7 +76,10 @@ tv_mac_ipv4_frag_fdir_passthru = {
     "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions passthru / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -80,7 +89,10 @@ tv_mac_ipv4_frag_fdir_drop = {
     "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True},
 }
@@ -90,7 +102,10 @@ tv_mac_ipv4_frag_fdir_mark_rss = {
     "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark / rss / end",
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -100,7 +115,10 @@ tv_mac_ipv4_frag_fdir_mark = {
     "rule": "flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions mark id 1 / end",
     "scapy_str": {
         "matched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IP()/Raw('X'*666)",
+            "Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1},
 }
@@ -158,7 +176,10 @@ tv_mac_ipv6_frag_fdir_queue_index = {
     "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions queue index 1 / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0},
 }
@@ -170,7 +191,10 @@ tv_mac_ipv6_frag_fdir_rss_queues = {
     ],
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0},
 }
@@ -180,7 +204,10 @@ tv_mac_ipv6_frag_fdir_passthru = {
     "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions passthru / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -190,7 +217,10 @@ tv_mac_ipv6_frag_fdir_drop = {
     "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / mark / end",
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True},
 }
@@ -200,7 +230,10 @@ tv_mac_ipv6_frag_fdir_mark_rss = {
     "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark / rss / end",
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -210,7 +243,10 @@ tv_mac_ipv6_frag_fdir_mark = {
     "rule": "flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions mark id 1 / end",
     "scapy_str": {
         "matched": ["Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"],
-        "unmatched": ["Ether()/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether()/IPv6()/Raw('X'*666)",
+            "Ether()/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1},
 }
-- 
2.17.1


  reply	other threads:[~2022-05-24  3:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24  3:00 [dts][PATCH V2 1/5] tests/rte_flow_common:modify check mismatch pkts test Zhimin Huang
2022-05-24  3:00 ` Zhimin Huang [this message]
2022-05-24  3:00 ` [dts][PATCH V2 3/5] test_plans/ice_ip_fragment_rte_flow:extend mismatch pkts Zhimin Huang
2022-05-24  3:00 ` [dts][PATCH V2 4/5] tests/ice_iavf_ip_fragment_rte_flow:extend " Zhimin Huang
2022-05-24  3:00 ` [dts][PATCH V2 5/5] test_plans/ice_iavf_ip_fragment_rte_flow:extend " Zhimin Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220524030048.34627-2-zhiminx.huang@intel.com \
    --to=zhiminx.huang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).