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 601F2A0501; Tue, 24 May 2022 10:19:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5ADBF427F2; Tue, 24 May 2022 10:19:27 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 7E2A4400D6 for ; Tue, 24 May 2022 10:19:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653380365; x=1684916365; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rbOsX4sFOFHXM6q212AukaFl8t0LjUDqwvHa29TmPe4=; b=fK3RGdHDaYPz3KEpJkPUuFp6Qz9RojUkY+0DWlkebeJFRESKHhK4Wd87 EBrKKi51qTnxpKMn7cODOmxZyRyVg8M6NsAvfEWIY1vqGj4oBawmiYjZ/ EEV8pMUQGtGFAYN+u53pRhmgW8eGL9NPhlQPqz76K8NSSSlnjAX0JLYa7 Mne7UenTvX9mnVg9Ymdq7rSwJjzgV8+wCNxx1EoZSymrJo5Vf+X3Wg0Pz q6R4meuPaLgNgZmgT5BAc7zoLq0Ndy6U7k2k5vU9h0BAtb2SbsL0mWKPe cwPtqkQoyXgNU+yXhVutPzJ+Mqd2nvEW+CywIAmqZzP0RzAnBpzXd7Qnp g==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="255531544" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="255531544" 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:25 -0700 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="745126408" 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:23 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang 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 Message-Id: <20220524081914.44538-5-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 --- ...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