From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1CE28A00BE; Mon, 27 Apr 2020 09:53:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0EFDA1C132; Mon, 27 Apr 2020 09:53:56 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D9EE51BF8E for ; Mon, 27 Apr 2020 09:53:53 +0200 (CEST) IronPort-SDR: 2DUtPRUTf8Veot0cgkZjtpGY2wL7G1uNc+jc/4vrXCH9mSnwcWz/ddC/8MAJim22omCRpIfBZr OHX/D9BusngA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:53:53 -0700 IronPort-SDR: HhhvDZ0P8M/WvwMTT3nJysyjn8DEkWOw+E+WqrVOXQsTzrqQByRxY+OIPHPQa1+4chcUIgudCG +kXzjuOFDVMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="336185301" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 27 Apr 2020 00:53:52 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:53:52 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:53:52 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.214]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:51:43 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 2/3]dpdk_gso_lib: set test nic to driver specified in cfg Thread-Index: AQHWG7fMq6t3T5BMSk+h6s7L6sfiIKiMme/w Date: Mon, 27 Apr 2020 07:51:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12B2C@SHSMSX101.ccr.corp.intel.com> References: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> <1587897525-114547-3-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1587897525-114547-3-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 2/3]dpdk_gso_lib: set test nic to driver specified in cfg X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Sunday, April 26, 2020 6:39 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 2/3]dpdk_gso_lib: set test nic to driver specifi= ed in > cfg >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_dpdk_gso_lib.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_dpdk_gso_lib.py > b/tests/TestSuite_dpdk_gso_lib.py index 4839ab2..72b1372 100644 > --- a/tests/TestSuite_dpdk_gso_lib.py > +++ b/tests/TestSuite_dpdk_gso_lib.py > @@ -54,6 +54,7 @@ class TestDPDKGsoLib(TestCase): >=20 > # unbind the port which config in ports.cfg > self.dut_ports =3D self.dut.get_ports() > + self.def_driver =3D > + self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() > for i in self.dut_ports: > port =3D self.dut.ports_info[i]['port'] > port.bind_driver() > @@ -67,9 +68,8 @@ class TestDPDKGsoLib(TestCase): > and len(self.peer_pci) !=3D 0 > and len(self.nic_in_kernel) !=3D 0, > 'Pls config the direct connection info in vhost_peer= _conf.cfg') > - self.dut.send_expect( > - "./usertools/dpdk-devbind.py -b igb_uio %s" % > - self.pci, '#', 30) > + bind_script_path =3D self.dut.get_dpdk_bind_script() > + self.dut.send_expect('%s --bind=3D%s %s' % (bind_script_path, > + self.def_driver, self.pci), '# ') >=20 > # get the numa info about the pci info which config in peer cfg > bus =3D int(self.pci[5:7], base=3D16) @@ -262,7 +262,7 @@ class > TestDPDKGsoLib(TestCase): >=20 > time.sleep(5) > try: > - self.vm1_dut =3D self.vm1.start(load_config=3DFalse) > + self.vm1_dut =3D self.vm1.start(load_config=3DFalse, > + set_target=3DFalse) > if self.vm1_dut is None: > raise Exception("Set up VM ENV failed") > except Exception as e: > -- > 1.8.3.1