From patchwork Wed Mar 8 05:31:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124849 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 D18AC41E1A; Wed, 8 Mar 2023 06:31:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC2E9410EE; Wed, 8 Mar 2023 06:31:40 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id CB48540E03 for ; Wed, 8 Mar 2023 06:31:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678253499; x=1709789499; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1TWO/JeCWhPNxSBQAuZVHlR5SZfYrHc6AR1zAkvRFNQ=; b=IKPxTOqW6cpfhJzIq2XVvk5l/G0qX1crTFdRbyTr4LbCxyYW3aAApkqF InZQFfQRWSNjQF/b15Q5qi/LKyJ/1WIiPgAiaf4YYji2MZBF10dB2IPaA f03pJlb4bJuX+Avjh8q215szYdIYNPmJx8WBO4qoj7UwVvVXQPTK58wp+ x0yiBUecCl6Polc9PS8VB2MkM6b+xxQ2AJz+VTRsKByQmBaIUxR6oVf5d nlAlq9LzSfHbBuwlFGZ53zpF+DSIRjweoQ6uTUBQXKPx/ZhF3znO4GvAs KZ/PMg3zAT/xb79OzduEd2QJaeGjqP07jfiJ3Hn9YMkgRFcQzHVVcJmjo A==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="324378966" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="324378966" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 21:31:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="765894106" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="765894106" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 21:31:36 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V2 2/2] tests/pvp_share_lib: add testcase3 to test Intel E800 seriers nic Date: Wed, 8 Mar 2023 13:31:25 +0800 Message-Id: <20230308053125.307683-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 Acked-by: Xingguang He --- 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()