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 F2249A0A0A; Fri, 26 Mar 2021 06:20:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAC07140DDC; Fri, 26 Mar 2021 06:20:48 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 358FB140D8A for ; Fri, 26 Mar 2021 06:20:47 +0100 (CET) IronPort-SDR: EvrZ0nrmN/3wSLL/qNvyg+CToXqkwte1OX8Bduwph9FpmmwGuN7LdHijOohnwKTXOYyg+a1qMU 9Lm1hXj9z8oA== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="252434529" X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="252434529" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 22:20:46 -0700 IronPort-SDR: gXFELCxECDCnH3kiGAqI0l83TEfsgj4ytXdw64RUjKbHvogI9sZhPQGnSWFptDnA7craEBaI2b j7pPReTBApOg== X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="416376105" Received: from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 22:20:45 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Fri, 26 Mar 2021 13:08:11 +0800 Message-Id: <1616735292-74549-2-git-send-email-zhiminx.huang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1616735292-74549-1-git-send-email-zhiminx.huang@intel.com> References: <1616735292-74549-1-git-send-email-zhiminx.huang@intel.com> Subject: [dts] [PATCH V1 1/2] remove reload ice code 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 Sender: "dts" *.cvl_dcf_acl_filter and cvl_limit_value_test remove reload ice code Signed-off-by: Zhimin Huang --- tests/TestSuite_cvl_dcf_acl_filter.py | 16 ---------------- tests/TestSuite_cvl_limit_value_test.py | 15 --------------- 2 files changed, 31 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_acl_filter.py b/tests/TestSuite_cvl_dcf_acl_filter.py index 826da9c..1d516fc 100644 --- a/tests/TestSuite_cvl_dcf_acl_filter.py +++ b/tests/TestSuite_cvl_dcf_acl_filter.py @@ -749,12 +749,6 @@ class CVLDCFACLFilterTest(TestCase): self.testpmd_status = "close" #bind pf to kernel self.bind_nics_driver(self.dut_ports, driver="ice") - #move comms package to package folder - self.suite_config = rfc.get_suite_config(self) - comms_package_location = self.suite_config["comms_package_file_location"] - package_location = self.suite_config["package_file_location"] - self.dut.send_expect("cp %s %s" % (comms_package_location, package_location), "# ") - self.re_load_ice_driver() #set vf driver self.vf_driver = 'vfio-pci' self.dut.send_expect("modprobe uio", "# ") @@ -784,16 +778,6 @@ class CVLDCFACLFilterTest(TestCase): port.bind_driver(self.vf_driver) time.sleep(15) - def re_load_ice_driver(self): - """ - remove and reload the ice driver - """ - ice_driver_file_location = self.suite_config["ice_driver_file_location"] - self.dut.send_expect("rmmod ice", "# ", 60) - self.dut.send_expect("insmod %s" % ice_driver_file_location, "# ", 60) - self.dut.send_expect("ifconfig %s up" % self.pf0_intf, "# ", 15) - self.dut.send_expect("ifconfig %s up" % self.tester_iface0, "# ", 15) - def set_up(self): """ Run before each test case. diff --git a/tests/TestSuite_cvl_limit_value_test.py b/tests/TestSuite_cvl_limit_value_test.py index 77ce016..b806474 100644 --- a/tests/TestSuite_cvl_limit_value_test.py +++ b/tests/TestSuite_cvl_limit_value_test.py @@ -189,15 +189,6 @@ class TestCvlLimitValue(TestCase): self.dut.destroy_sriov_vfs_by_port(self.dut_ports[0]) self.dut.destroy_sriov_vfs_by_port(self.dut_ports[1]) - def re_load_ice_driver(self): - """ - remove and reload the ice driver - """ - ice_driver_file_location = self.suite_config["ice_driver_file_location"] - self.dut.send_expect("rmmod ice", "# ", 15) - self.dut.send_expect("insmod %s" % ice_driver_file_location, "# ", 60) - time.sleep(5) - def config_testpmd(self): self.pmd_output.execute_cmd("set fwd rxonly") self.pmd_output.execute_cmd("set verbose 1") @@ -813,12 +804,6 @@ class TestCvlLimitValue(TestCase): def test_max_rule_number(self): #bind pf to kernel self.bind_nics_driver(self.dut_ports, driver="ice") - #move comms package to package folder - self.suite_config = rfc.get_suite_config(self) - comms_package_location = self.suite_config["comms_package_file_location"] - package_location = self.suite_config["package_file_location"] - self.dut.send_expect("cp %s %s" % (comms_package_location, package_location), "# ") - self.re_load_ice_driver() #set vf driver self.vf_driver = 'vfio-pci' self.dut.send_expect('modprobe vfio-pci', '#') -- 1.8.3.1