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 CD3B0A034F; Tue, 30 Mar 2021 10:52:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7DD4140DA0; Tue, 30 Mar 2021 10:52:07 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 0C9C240691 for ; Tue, 30 Mar 2021 10:52:05 +0200 (CEST) IronPort-SDR: XgYzKA5CMPdqFMCw1wtkas+X1RZenZcLPQJT5wjEzG50aYsF+XV8yf9gWkNcSg2Av5MTrMaiYi 3/FWXTuGuZ7A== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="276891597" X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="276891597" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:52:05 -0700 IronPort-SDR: f5zStnN9qHwXXrClOmllSw4b8JizjH/oE/AiMMegI5BCkE+/MONaFOE1FV2RU2nnavjdAOmWiL rZ5AoKSmclpw== X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="610035921" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 01:52:03 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Tue, 30 Mar 2021 16:50:40 +0800 Message-Id: <20210330085040.322867-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/2] tests/dpdk_gro_lib: delete unbind ports of ports.cfg step 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" Delete unbind ports of ports.cfg step in set_up_all to avoid impact other test suites. Signed-off-by: Ling Wei --- tests/TestSuite_dpdk_gro_lib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index efd04ffd..9bf73213 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -51,12 +51,10 @@ class TestDPDKGROLib(TestCase): # it will use the port config in vhost_peer_conf.cfg # And it need two interface reconnet in DUT - # unbind the port which config in ports.cfg + # get dut ports and default driver self.dut_ports = self.dut.get_ports() self.def_driver = self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() - for i in self.dut_ports: - port = self.dut.ports_info[i]['port'] - port.bind_driver() + # get and bind the port in config file self.pci = peer.get_pci_info() self.pci_drv = peer.get_pci_driver_info() -- 2.25.1