From patchwork Wed Feb 1 02:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 122769 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 D7E2D41B94; Wed, 1 Feb 2023 03:57:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1AD741151; Wed, 1 Feb 2023 03:57:10 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 69C4D4021F for ; Wed, 1 Feb 2023 03:57:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675220228; x=1706756228; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZBmL5fZsDd6/SPz4qT+SjpP77FvYh7R5Gl1mr/c1VXM=; b=Q9FZoGm1hu3I3vC/vqkgTX6bPt5VMLFWAIjdzQU3muSUTFuTdtTYuOug VaOHIlWntCMLKrkZb6GlKYVYEdKVREYK5KYXIo02Nazr2+T0rtk33Os0/ SUgv1xxryrweD9pG0r1z5/sJB1M8teF922F6xl7yQyL9VYKsnIMkfT8AT P5HIU5VZFu4QlzRYARprNHFYGYeDxqIgfllNwzgYNYVt3Ig/0ZLnSYrU1 6qSmF6op/0Pj1dxrswbx6L7D3PhNGWoAs2kWGedfYUSlomSnImN/KCI+J yvPbBXle6Jxzs8EKfrmvZsbWP1ZGELce1ExDEu1VwvuTgEu6pgKA1T11j g==; X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="414231371" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="414231371" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 18:57:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="695181224" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="695181224" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 18:57:05 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/pvp_share_lib_test_plan: add testcase3 to test Intel E800 seriers nic Date: Wed, 1 Feb 2023 10:45:46 +0800 Message-Id: <20230201024546.775357-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.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 Add testcase3 to test Intel E800 seriers nic and modify testcase 1 the wrong lib version. Signed-off-by: Wei Ling --- test_plans/pvp_share_lib_test_plan.rst | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/test_plans/pvp_share_lib_test_plan.rst b/test_plans/pvp_share_lib_test_plan.rst index 936480bf..22a0084b 100644 --- a/test_plans/pvp_share_lib_test_plan.rst +++ b/test_plans/pvp_share_lib_test_plan.rst @@ -10,8 +10,8 @@ Description The feature need compile dpdk as shared libraries, then application should use option ``-d`` to load the dynamic pmd that are built as shared libraries. -Test Case1: Vhost/virtio-user pvp share lib test with 82599 -=========================================================== +Test Case 1: Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599 Series +=================================================================================== 1. Enable the shared lib in DPDK configure file:: @@ -27,13 +27,13 @@ Test Case1: Vhost/virtio-user pvp share lib test with 82599 4. Bind 82599 port with vfio-pci, use option ``-d`` to load the dynamic pmd when launch vhost:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x03 -n 4 -d librte_net_vhost.so.21.0 -d librte_net_i40e.so.21.0 -d librte_mempool_ring.so.21.0 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x03 -n 4 -d librte_net_vhost.so -d librte_net_ixgbe.so -d librte_mempool_ring.so \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i testpmd>start 5. Launch virtio-user:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0c -n 4 -d librte_net_virtio.so.21.0 -d librte_mempool_ring.so.21.0 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0c -n 4 -d librte_net_virtio.so -d librte_mempool_ring.so \ --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i testpmd>start @@ -41,8 +41,8 @@ Test Case1: Vhost/virtio-user pvp share lib test with 82599 testpmd>show port stats all -Test Case2: Vhost/virtio-user pvp share lib test with Intel® Ethernet 700 Series -================================================================================ +Test Case 2: Vhost/virtio-user pvp share lib test with Intel® Ethernet 700 Series +================================================================================= Similar as Test Case1, all steps are similar except step 4: @@ -51,3 +51,14 @@ Similar as Test Case1, all steps are similar except step 4: ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x03 -n 4 -d librte_net_vhost.so -d librte_net_i40e.so -d librte_mempool_ring.so \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i testpmd>start + +Test Case 3: Vhost/virtio-user pvp share lib test with Intel® Ethernet 800 Series +================================================================================= + +Similar as Test Case1, all steps are similar except step 4: + +4. Bind Intel® Ethernet 700 Series port with vfio-pci, use option ``-d`` to load the dynamic pmd when launch vhost:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x03 -n 4 -d librte_net_vhost.so -d librte_net_ice.so -d librte_mempool_ring.so \ + --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i + testpmd>start From patchwork Wed Feb 1 02:45:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 122770 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 0AF8B41B94; Wed, 1 Feb 2023 03:57:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0438F41148; Wed, 1 Feb 2023 03:57:19 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 48D8E4021F for ; Wed, 1 Feb 2023 03:57:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675220238; x=1706756238; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1TWO/JeCWhPNxSBQAuZVHlR5SZfYrHc6AR1zAkvRFNQ=; b=Lj/cz7HOVO+GlG6d9gu4Oh957LtU8mk+paowPU/s3dQNzk01EmXlgB2S LYKXgQaTMECOhPvOcjF2pnme11n1QEiRjngm/6iZ/UmS47NOOu5nJprkN yQz/JXO5pDmBd3ubTvN9uIQUSTzFHbNZ2NeN/vTUaJ8gCDRaokyfir8XI sNhL0IDfCVpeY1rL9NKXgL/KNGYBdfnBTYQNtJcFohs+DJ6B8dBhPRo7l R86YfoqSuFapdrHWZ8yJzyXhAwSxTA9VWpC39giq6MiN71pOkbxXYNnt/ WmosAx51tVS0+x50HVoHlYj9nqLZhZUIXZfNnWE1ex6jKf8zJdEVPygz1 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="414231400" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="414231400" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 18:57:17 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="695181260" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="695181260" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 18:57:15 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/pvp_share_lib: add testcase3 to test Intel E800 seriers nic Date: Wed, 1 Feb 2023 10:45:56 +0800 Message-Id: <20230201024556.775417-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.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 Add testcase3 to test Intel E800 seriers nic and detele the unused prepare_share_lib_env() and step. Signed-off-by: Wei Ling --- tests/TestSuite_pvp_share_lib.py | 53 ++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_pvp_share_lib.py b/tests/TestSuite_pvp_share_lib.py index afead4c2..5d3eb26f 100644 --- a/tests/TestSuite_pvp_share_lib.py +++ b/tests/TestSuite_pvp_share_lib.py @@ -34,7 +34,6 @@ class TestPVPShareLib(TestCase): self.core_list_vhost_user = self.core_list[2:4] self.mem_channels = self.dut.get_memory_channels() self.dst_mac = self.dut.get_mac_address(self.dut_ports[0]) - self.prepare_share_lib_env() self.out_path = "/tmp" out = self.tester.send_expect("ls -d %s" % self.out_path, "# ") @@ -71,11 +70,6 @@ class TestPVPShareLib(TestCase): self.table_header.append("% linerate") self.result_table_create(self.table_header) - def prepare_share_lib_env(self): - self.dut.build_install_dpdk( - self.dut.target, extra_options="-Dc_args=-DRTE_BUILD_SHARED_LIB" - ) - def restore_env(self): self.dut.build_install_dpdk(self.dut.target) @@ -166,21 +160,62 @@ class TestPVPShareLib(TestCase): self.dut.close_session(self.vhost_user) self.dut.close_session(self.virtio_user) - def test_perf_pvp_share_lib(self): + def test_perf_pvp_share_lib_for_intel_82599_series(self): """ - Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599/700 Series + Test Case 1: Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599 Series """ self.verify( self.nic in [ "IXGBE_10G-82599_SFP", + "IXGBE_10G-82599_T3_LOM", + "IXGBE_10G-82599_SFP_SF_QP", + ], + "the nic not support this case: %s" % self.running_case, + ) + self.start_testpmd_as_vhost(driver="ixgbe") + self.start_testpmd_as_virtio() + self.send_and_verify() + self.result_table_print() + self.close_all_apps() + + def test_perf_pvp_share_lib_for_intel_700_series(self): + """ + Test Case 2: Vhost/virtio-user pvp share lib test with Intel® Ethernet 700 Series + """ + self.verify( + self.nic + in [ "I40E_10G-SFP_XL710", "I40E_40G-QSFP_A", + "I40E_40G-QSFP_B", + "I40E_10G-SFP_X722", + "I40E_10G-10G_BASE_T_X722", "I40E_25G-25G_SFP28", ], "the nic not support this case: %s" % self.running_case, ) - self.start_testpmd_as_vhost(driver=DRIVERS[self.nic]) + self.start_testpmd_as_vhost(driver="i40e") + self.start_testpmd_as_virtio() + self.send_and_verify() + self.result_table_print() + self.close_all_apps() + + def test_perf_pvp_share_lib_for_intel_800_series(self): + """ + Test Case 3: Vhost/virtio-user pvp share lib test with Intel® Ethernet 800 Series + """ + self.verify( + self.nic + in [ + "ICE_100G-E810C_QSFP", + "ICE_25G-E810C_SFP", + "ICE_25G-E810_XXV_SFP", + "ICE_25G-E823C_QSFP", + ], + "the nic not support this case: %s" % self.running_case, + ) + self.start_testpmd_as_vhost(driver="ice") self.start_testpmd_as_virtio() self.send_and_verify() self.result_table_print()