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 V3 4/5] tests/ice_iavf_ip_fragment_rte_flow:extend mismatch pkts
Date: Tue, 24 May 2022 16:19:13 +0800	[thread overview]
Message-ID: <20220524081914.44538-5-zhiminx.huang@intel.com> (raw)
In-Reply-To: <20220524081914.44538-1-zhiminx.huang@intel.com>

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

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

diff --git a/tests/TestSuite_ice_iavf_ip_fragment_rte_flow.py b/tests/TestSuite_ice_iavf_ip_fragment_rte_flow.py
index 8c9cfd9d..9f44ccf1 100644
--- a/tests/TestSuite_ice_iavf_ip_fragment_rte_flow.py
+++ b/tests/TestSuite_ice_iavf_ip_fragment_rte_flow.py
@@ -49,7 +49,8 @@ tv_mac_ipv4_frag_fdir_queue_index = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0},
@@ -63,7 +64,8 @@ tv_mac_ipv4_frag_fdir_rss_queues = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0},
@@ -75,7 +77,8 @@ tv_mac_ipv4_frag_fdir_passthru = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
@@ -87,7 +90,8 @@ tv_mac_ipv4_frag_fdir_drop = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True},
@@ -99,7 +103,8 @@ tv_mac_ipv4_frag_fdir_mark_rss = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
@@ -111,7 +116,8 @@ tv_mac_ipv4_frag_fdir_mark = {
     "scapy_str": {
         "matched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
         "unmatched": [
-            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
+            "Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)",
         ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1},
@@ -157,7 +163,10 @@ tv_mac_ipv6_frag_fdir_queue_index = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": 1, "mark_id": 0},
 }
@@ -171,7 +180,10 @@ tv_mac_ipv6_frag_fdir_rss_queues = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "queue": [2, 3], "mark_id": 0},
 }
@@ -183,7 +195,10 @@ tv_mac_ipv6_frag_fdir_passthru = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -195,7 +210,10 @@ tv_mac_ipv6_frag_fdir_drop = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "drop": True},
 }
@@ -207,7 +225,10 @@ tv_mac_ipv6_frag_fdir_mark_rss = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 0, "rss": True},
 }
@@ -219,7 +240,10 @@ tv_mac_ipv6_frag_fdir_mark = {
         "matched": [
             "Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666)"
         ],
-        "unmatched": ["Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)"],
+        "unmatched": [
+            "Ether(dst='00:11:22:33:55:66')/IPv6()/Raw('X'*666)",
+            "Ether(dst='00:11:22:33:55:66')/IP(id=47750)/Raw('X'*666)",
+        ],
     },
     "check_param": {"port_id": 0, "rxq": LAUNCH_QUEUE, "mark_id": 1},
 }
-- 
2.25.1


  parent reply	other threads:[~2022-05-24  8:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24  8:19 [dts][PATCH V3 0/5] optimized pf/vf ice_ipfragment Zhimin Huang
2022-05-24  8:19 ` [dts][PATCH V3 1/5] tests/rte_flow_common:modify check mismatch pkts test Zhimin Huang
2022-05-24  8:19 ` [dts][PATCH V3 2/5] tests/ice_ip_fragment_rte_flow:extend mismatch pkts Zhimin Huang
2022-05-24  8:19 ` [dts][PATCH V3 3/5] test_plans/ice_ip_fragment_rte_flow:extend " Zhimin Huang
2022-05-24  8:19 ` Zhimin Huang [this message]
2022-05-24  8:19 ` [dts][PATCH V3 5/5] test_plans/ice_iavf_ip_fragment_rte_flow:extend " Zhimin Huang
2022-05-25 11:08   ` lijuan.tu

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=20220524081914.44538-5-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).