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 3FE30A00C2; Wed, 4 Jan 2023 02:58:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1566540698; Wed, 4 Jan 2023 02:58:42 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 4012A40697 for ; Wed, 4 Jan 2023 02:58:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672797520; x=1704333520; h=from:to:cc:subject:date:message-id; bh=jYZTEgz13kTreZYff4OpEfPM7yoCmS5MHpCozWG4Iw8=; b=CcxZfM7ZWbOiDxbGElUFguGixAPdR0FH8F0sALzeCdTZQX4CL/bSnKN8 7X/D0Y0bmtwbfIswvFcWxV4Zq/7SX+92w7UoVvgSZWX1i0oX5y7CWr2mQ Pzqh5jwG3UrvjSuBvF6wJSkg72qYxo2Pj4woLfkTM15pw/PWI4GaDJWJR Ehcs6DKcS6LuU955kwZPU7TvtZRIxaNdbZgcpo6uBtzpAW6KZnfpYCDH3 fu4H1tQfq61RzjXALDMemYWaSGShQqG7fUIsfefMj6QSBzSXk6HIWq+gV DtkoVDjp0BrM4YCfmh3z3cSeKUvPF6FVPymEXlI9wM5n1rswa3BIsKM6X w==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="323042667" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="323042667" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 17:58:39 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="723478905" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="723478905" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 17:58:37 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/dpdk_gro_lib: optimize bonding NIC ports step Date: Wed, 4 Jan 2023 09:53:53 +0800 Message-Id: <20230104015353.15919-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 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.Optimize bonding NIC ports step. 2.Remove invalid script code. Signed-off-by: Dukai Yuan --- tests/TestSuite_dpdk_gro_lib.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index 1d3f809b..eaaf757e 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -20,18 +20,6 @@ from framework.virt_common import VM class TestDPDKGROLib(TestCase): def set_up_all(self): - # This suite will not use the port config in ports.cfg - # 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 - 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() @@ -46,7 +34,7 @@ class TestDPDKGROLib(TestCase): ) bind_script_path = self.dut.get_dpdk_bind_script() self.dut.send_expect( - "%s --bind=%s %s" % (bind_script_path, self.def_driver, self.pci), "# " + "%s --bind=%s %s" % (bind_script_path, self.drivername, self.pci), "# " ) self.path = self.dut.apps_name["test-pmd"] self.testpmd_name = self.path.split("/")[-1] @@ -76,7 +64,6 @@ class TestDPDKGROLib(TestCase): else: self.socket_mem = "1024,1024" self.base_dir = self.dut.base_dir.replace("~", "/root") - self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) def set_up(self): # @@ -425,9 +412,6 @@ class TestDPDKGROLib(TestCase): """ Run after each test suite. """ - for i in self.dut_ports: - port = self.dut.ports_info[i]["port"] - port.bind_driver(self.def_driver) self.dut.send_expect("ip netns del ns1", "# ", 30) self.dut.send_expect("./usertools/dpdk-devbind.py -u %s" % (self.pci), "# ", 30) self.dut.send_expect( -- 2.17.1