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 1EC4BA04FF; Tue, 24 May 2022 10:19:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19D6F41104; Tue, 24 May 2022 10:19:24 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id D6284400D6 for ; Tue, 24 May 2022 10:19:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653380363; x=1684916363; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YU/3UMIemfSuHeCiTSuObT3fWnvbM7Ph+lmnaCafmXQ=; b=Tz8ZazDo+yfCKlg8L71wJtBXW6juwDoy4WqFvwOQCzzXQGnvsDhROhj5 /SKACEbRk5GAT2j0J2BNHk+8mGaCcS4blE4M0BM7WWKwjwif/rYC3PqRp AsN1NjL1XRnP3l4tPZ5T5QsE4CO5pK8opJoDBDUC2rcd5IsvcdB1y5Dij L5I0/FQbXg3jhldRBS9IpDbiEj0EZ5ny9I4hEEjEwsazgvq2Zqtc6EU9D Y14IAgqQ24398Ax0vu5Hw8Pe3LcVbpuYlloQ6m36rzKOgHl8q8J/JKCLN 4Wl3G70NouY9yHty5eYP6oM/gJMkFRkLVFMHxlovXp8FI4JZvkN3AlPEY Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="255531524" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="255531524" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 01:19:22 -0700 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="745126377" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 01:19:20 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V3 2/5] tests/ice_ip_fragment_rte_flow:extend mismatch pkts Date: Tue, 24 May 2022 16:19:11 +0800 Message-Id: <20220524081914.44538-3-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524081914.44538-1-zhiminx.huang@intel.com> References: <20220524081914.44538-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 | 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.25.1