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 0ACE1A00BE; Mon, 27 Apr 2020 09:51:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 01E2A1C1A3; Mon, 27 Apr 2020 09:51:51 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6B2941BF8E for ; Mon, 27 Apr 2020 09:51:50 +0200 (CEST) IronPort-SDR: jsMDZ/XDZk3Eu6gGDLT43KHWf110On/dCYWYhCl0LdhvNTchH+knMSoxMUlVr+FezqjQT8wDWi l6Q3yH2QpMFw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:51:49 -0700 IronPort-SDR: qkGxyro2fGrMKZc02k2UqpET0wjj4jFxw3I1Oerz6CLDoZ7vGYuskzzpa0lzZSnn5gLG+vY4pg JBA8V0M/EqJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="367062907" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 27 Apr 2020 00:51:49 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:49 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:48 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.7]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:51:46 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 1/3]dpdk_gro_lib: set test nic to driver specified in cfg Thread-Index: AQHWG7fPevmZ3sAEpk6up6+3gamK26iMmfOw Date: Mon, 27 Apr 2020 07:51:45 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12B51@SHSMSX101.ccr.corp.intel.com> References: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> <1587897525-114547-2-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1587897525-114547-2-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 1/3]dpdk_gro_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 1/3]dpdk_gro_lib: set test nic to driver specifi= ed in > cfg >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_dpdk_gro_lib.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_dpdk_gro_lib.py > b/tests/TestSuite_dpdk_gro_lib.py index 36841b9..0e1e3c8 100644 > --- a/tests/TestSuite_dpdk_gro_lib.py > +++ b/tests/TestSuite_dpdk_gro_lib.py > @@ -53,6 +53,7 @@ class TestDPDKGROLib(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() > @@ -66,9 +67,8 @@ class TestDPDKGROLib(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) > -- > 1.8.3.1