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 4ED06A0503; Tue, 24 May 2022 05:01:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 438F342824; Tue, 24 May 2022 05:01:00 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 68444427F8 for ; Tue, 24 May 2022 05:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653361258; x=1684897258; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rcrcO/rnRL36KopqbQH0KEVr4yLivP+nvOTBiDc53AI=; b=bnUvttDgW85YOtGKo/GftJ2w/qMHPnjtxOx/gNPkHYnRih4EVWhmCz2g kMR6boxSl8X3fG4gpL52heXOOAoQs0NQKQUMlYqZVCrcrya26t2BZGq8Z yil5dD5JozmTNVueGfGtICTdoEzwq1lX5mm/gXAVknFeeRL2SXZ7WQlhq l3sSxUDcyJDRHM8Nmx1t4kwA6yyL0RVHWDFJrl7dAq0NxWCoiZPcFgut2 8YD50m93mCTiA1X9ZAqF1JENTRn29chvKdkz6yX/R0JAvJ0QyUYK//syi 5F3Nj2oWOIteJtye+sXPQdKXy6EQHNWQNKDB0VgB0Jnpqeph3pdI1JQ5A w==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="255480756" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="255480756" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:57 -0700 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="600996688" 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 20:00:56 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V2 4/5] tests/ice_iavf_ip_fragment_rte_flow:extend mismatch pkts Date: Tue, 24 May 2022 11:00:47 +0800 Message-Id: <20220524030048.34627-4-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524030048.34627-1-zhiminx.huang@intel.com> References: <20220524030048.34627-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. V2: fix format issue 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.17.1