From patchwork Thu Sep 8 11:11:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116065 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 042A6A0548; Thu, 8 Sep 2022 04:57:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD7F840143; Thu, 8 Sep 2022 04:57:22 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6BD7E400D6 for ; Thu, 8 Sep 2022 04:57:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662605841; x=1694141841; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=u0RkpAnWmwlEpdvIDACFXdpOTS2KzQMXKJV7sbAy+gw=; b=ed/GOVPQA4DxhcpFVt7TRSIYPzl4J6D2LSwEVOEVBFP2srCukfSmgBOr xqubqXjp3KXxQnptQqno0oTdMrweWEXLR8h7BGTv58x/81ovHPprWS6GB 3gwIG8mXkyJpRt0AiNbjTzx68+qLVy8mmfC5f3xsgxuGQCCNA3KR3qwzd 8ridDXvRBVof9tdAS30g0veg9293U3zGruPiKjqU/SYn+d3ixUV1miYzX bkImH3l5R2Qw6VUBEYWebRarG3ANpSvI3ulGWY1E7WPhhEwpuq2y7o9ce 3jyMcdQXH6mIUshUdOfQ3M/3jBr19yHXspSCRXpmSA/neiTFaHGXHyMNe g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297855676" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="297855676" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:57:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="644886387" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.239.252.94]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:57:19 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V3 1/2] test_plans/ice_dcf_data_path: rename suite Date: Thu, 8 Sep 2022 11:11:47 +0000 Message-Id: <20220908111148.8023-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 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 1. rename the name of ice_dcf_date_path to ice_dcf_data_path. 2. modify the format of testplan. Signed-off-by: Song Jiale Acked-by: Peng, Yuan --- ...an.rst => ice_dcf_data_path_test_plan.rst} | 48 ++++++++++++++----- test_plans/index.rst | 2 +- 2 files changed, 38 insertions(+), 12 deletions(-) rename test_plans/{ice_dcf_date_path_test_plan.rst => ice_dcf_data_path_test_plan.rst} (88%) diff --git a/test_plans/ice_dcf_date_path_test_plan.rst b/test_plans/ice_dcf_data_path_test_plan.rst similarity index 88% rename from test_plans/ice_dcf_date_path_test_plan.rst rename to test_plans/ice_dcf_data_path_test_plan.rst index 1a0df884..bc413d69 100644 --- a/test_plans/ice_dcf_date_path_test_plan.rst +++ b/test_plans/ice_dcf_data_path_test_plan.rst @@ -1,3 +1,15 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2019 Intel Corporation + + +======================= +ICE DCF Data Path Tests +======================= + +Description +=========== + +This document provides the plan for testing DCF data path function of IntelĀ® Ethernet 800 Series. Common steps for launching DCF ============================== @@ -17,7 +29,7 @@ Set a VF as trust :: Launch dpdk on the VF, request DCF mode :: ./usertools/dpdk-devbind.py -b vfio-pci 18:01.0 - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=vf -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-10 -n 4 -a 18:01.0,cap=dcf --file-prefix=vf -- -i --rxq=4 --txq=4 Test Case: Launch DCF and do macfwd @@ -64,7 +76,9 @@ Send a series packets to check if DCF RSS is correct for IPv4 :: sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IP(src="192.168.1.3", dst="192.168.1.2")/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IP(src="192.168.1.1", dst="192.168.1.2")/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3, and should be same to p4. +Expected: + p1 hash value is not equal to p2 or p3, and should be same to p4. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for IPv6 :: @@ -73,7 +87,9 @@ Send a series packets to check if DCF RSS is correct for IPv6 :: sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IPv6(src="::21", dst="::11")/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IPv6(src="::22", dst="::11")/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3, and should be same to p4. +Expected: + p1 hash value is not equal to p2 or p3, and should be same to p4. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for tunnelling packet (inner IPv4) :: @@ -84,8 +100,9 @@ Send a series packets to check if DCF RSS is correct for tunnelling packet (inne sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="11:22:33:44:55:77")/IPv6(src="::11", dst="::22")/GRE()/IP(src="192.168.1.1", dst="192.168.1.2")/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3. p1 hash value is equal to p4 and p5. - +Expected: + p1 hash value is not equal to p2 or p3. p1 hash value is equal to p4 and p5. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for tunnelling packet (inner IPv6) :: @@ -95,7 +112,9 @@ Send a series packets to check if DCF RSS is correct for tunnelling packet (inne sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="11:22:33:44:55:77")/IP(src="1.1.1.2", dst="2.2.2.1")/GRE()/IPv6(src="::22", dst="::11")/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="11:22:33:44:55:77")/IPv6(src="::33", dst="::44")/GRE()/IPv6(src="::22", dst="::11")/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3. p1 hash value is equal to p4 and p5. +Expected: + p1 hash value is not equal to p2 or p3. p1 hash value is equal to p4 and p5. + p1/p2/p3 should be devided into different queues. Test Case: Check default rss for L4 @@ -121,7 +140,9 @@ Send a series packets to check if DCF RSS is correct for IPv4 :: sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IP(src="192.168.1.1", dst="192.168.1.2")/UDP(sport=1234, dport=5679)/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:22:33:44:55:77")/IP(src="192.168.1.1", dst="192.168.1.2")/TCP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6. +Expected: + p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for IPv6 :: @@ -132,7 +153,9 @@ Send a series packets to check if DCF RSS is correct for IPv6 :: sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:11:22:33:44:55")/IPv6(src="::22", dst="::11")/UDP(sport=1234, dport=5679)/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="11:22:33:44:55:77")/IPv6(src="::22", dst="::11")/TCP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6. +Expected: + p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for tunnelling packet (inner IPv4) :: @@ -144,8 +167,9 @@ Send a series packets to check if DCF RSS is correct for tunnelling packet (inne sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:22:33:44:55:77")/IP(src="1.1.1.2", dst="2.2.2.1")/GRE()/IP(src="192.168.1.1", dst="192.168.1.2")/UDP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:22:33:44:55:77")/IPv6(src="::11", dst="::22")/GRE()/IP(src="192.168.1.1", dst="192.168.1.2")/TCP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6 and p7. - +Expected: + p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6 and p7. + check the packets are distributed to queues by rss. Send a series packets to check if DCF RSS is correct for tunnelling packet (inner IPv6) :: @@ -157,7 +181,9 @@ Send a series packets to check if DCF RSS is correct for tunnelling packet (inne sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:22:33:44:55:77")/IP(src="1.1.1.2", dst="2.2.2.1")/GRE()/IPv6(src="::22", dst="::11")/UDP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) sendp(Ether(dst="D2:6B:4C:EB:1C:26", src="00:22:33:44:55:77")/IPv6(src="::33", dst="::44")/GRE()/IPv6(src="::22", dst="::11")/UDP(sport=1234, dport=5678)/Raw('x'*64), iface=intf) -Expected: p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6 and p7. +Expected: + p1 hash value is not equal to p2 or p3 or p4 or p5, and should be equal to p6 and p7. + check the packets are distributed to queues by rss. Test Case: Create rule with to original VF action diff --git a/test_plans/index.rst b/test_plans/index.rst index 2d797b6d..5b0b409a 100644 --- a/test_plans/index.rst +++ b/test_plans/index.rst @@ -28,7 +28,7 @@ The following are the test plans for the DPDK DTS automated test system. ice_advanced_iavf_rss_pppol2tpoudp_test_plan ice_advanced_rss_vlan_esp_ah_l2tp_pfcp_test_plan ice_dcf_acl_filter_test_plan - ice_dcf_date_path_test_plan + ice_dcf_data_path_test_plan ice_dcf_switch_filter_test_plan ice_dcf_switch_filter_pppoe_test_plan ice_dcf_switch_filter_gtpu_test_plan From patchwork Thu Sep 8 11:11:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116066 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F41D0A054A; Thu, 8 Sep 2022 04:57:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E92B440697; Thu, 8 Sep 2022 04:57:23 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 37394400D6 for ; Thu, 8 Sep 2022 04:57: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=1662605842; x=1694141842; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=G3PWsbWivCXQ9jxryAB6hR0xvhqznmgyB4VRcltLu90=; b=C7wx8A9GXrGRuCdBIfJzHcd1VVYWVNW5a3llBZg8Vhz1MO9g/EjABp0y fuigldDNEXdi/xOVJbRKrWFvGZ8LgrL0IFOD0VnCA0Y0yqj25HixWJx3M lQXi3V+JR9UQpY7FBLBZsXKAhYBsvCXeJMhhVvwR+plG841jbr8yL/bR8 ej5ASr/XTKIrtveWVvs7ZBZ5VPnBuJ/t9noDmbPOPBBzvb8ZhBM2DFrZ7 LYjwkQpnQ4gHd6p/Q6HBMCLUS7JKa1XJftvYp9H+GQLHaeUpDz6J9nscz rHvlXFJG1Y8hTt2EEbwUVkcfeNu76R+YsKt3pZauOM/8Ew1HipcjB9zpP g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297855681" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="297855681" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:57:21 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="644886393" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.239.252.94]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:57:20 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V3 2/2] tests/ice_dcf_data_path: rename suite Date: Thu, 8 Sep 2022 11:11:48 +0000 Message-Id: <20220908111148.8023-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220908111148.8023-1-songx.jiale@intel.com> References: <20220908111148.8023-1-songx.jiale@intel.com> 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 1. rename the name of ice_dcf_date_path to ice_dcf_data_path. 2. synchronize testplan modifications. Signed-off-by: Song Jiale Acked-by: Peng, Yuan Tested-by: Lingli Chen Acked-by: Lijuan Tu --- ...te_ice_dcf_date_path.py => TestSuite_ice_dcf_data_path.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename tests/{TestSuite_ice_dcf_date_path.py => TestSuite_ice_dcf_data_path.py} (99%) diff --git a/tests/TestSuite_ice_dcf_date_path.py b/tests/TestSuite_ice_dcf_data_path.py similarity index 99% rename from tests/TestSuite_ice_dcf_date_path.py rename to tests/TestSuite_ice_dcf_data_path.py index 3181aad7..a31681fb 100644 --- a/tests/TestSuite_ice_dcf_date_path.py +++ b/tests/TestSuite_ice_dcf_data_path.py @@ -10,7 +10,7 @@ from framework.pmd_output import PmdOutput from framework.test_case import TestCase -class DcfDatePathTest(TestCase): +class DcfDataPathTest(TestCase): vf_mac = "D2:6B:4C:EB:1C:26" wrong_mac = "68:05:CA:8D:ED:A8" @@ -37,7 +37,7 @@ class DcfDatePathTest(TestCase): def set_up(self): self.pmd_output.start_testpmd( cores="1S/4C/1T", - param="--txq=2 --rxq=2 --txd=384 --rxd=384", + param="--txq=4 --rxq=4", prefix="vf", ports=[self.used_vf_pci], port_options={self.used_vf_pci: "cap=dcf"},