From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 22086A04FF; Tue, 24 May 2022 04:13:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F398E40A87; Tue, 24 May 2022 04:13:01 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 2F92A4067B for ; Tue, 24 May 2022 04:12:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653358380; x=1684894380; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AJozrbSOMvLolBcv6lWJAccGF/hG5TejeviF9ssbXB8=; b=LrO/ZB4qtZ4RqSnGqoWzZzr4O8fhNmSleX/fslCW/VZIxQuHr+Zi7992 zBQ9mcdliIUk915Cy8LfJbR+ztzJviKpLAScIve+ym5dimBbNNPqm6gNr 4xqqxZBemgVVY+KoiPtmrNWn3GVx3V80T7JzwWqLZm6UBqu74MuQmmmaH kLcSAV20s/Rbs8sCeBRYHBza7C+5+zqFNDPbiOJJmN1Wm6DuXBxrk7IVi pYtRPwuOyEiwRRkOOWrarVw3fm+ypLIfg0mt1zRTB9QJ8/P49aYSqVOP1 Br31KUQMuAi7KSm9b6k/FSmjCmfPpEfIxeoZSRFq4Ag2trMtTlIUUzCY2 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="273133543" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="273133543" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 19:12:39 -0700 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="600981826" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 19:12:38 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V1 2/5] tests/ice_ip_fragment_rte_flow:extend mismatch pkts Date: Tue, 24 May 2022 10:12:29 +0800 Message-Id: <20220524021232.32762-2-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524021232.32762-1-zhiminx.huang@intel.com> References: <20220524021232.32762-1-zhiminx.huang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org mismatch pkt should cover mismatch inputset pkts and mismatch pattern pkts. extend mismatch pkts to cover more test. Signed-off-by: Zhimin Huang --- tests/TestSuite_ice_ip_fragment_rte_flow.py | 36 ++++++++++++++------- 1 file changed, 24 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..da3e51bd 100644 --- a/tests/TestSuite_ice_ip_fragment_rte_flow.py +++ b/tests/TestSuite_ice_ip_fragment_rte_flow.py @@ -48,7 +48,8 @@ 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 +61,8 @@ 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 +72,8 @@ 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 +83,8 @@ 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 +94,8 @@ 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 +105,8 @@ 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 +164,8 @@ 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 +177,8 @@ 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 +188,8 @@ 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 +199,8 @@ 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 +210,8 @@ 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 +221,8 @@ 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