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 B9ED6A0350; Wed, 1 Jul 2020 08:05:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B2DE61BF95; Wed, 1 Jul 2020 08:05:15 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 8DA411BF93 for ; Wed, 1 Jul 2020 08:05:14 +0200 (CEST) IronPort-SDR: kkigJeWJJeRQKD0GAEKuTnwLfNroQmfGa9X46BpoTgul+yNeKk1HMvTvqF568iO+f7t6uFt7QO 5xvvJgW1EcpQ== X-IronPort-AV: E=McAfee;i="6000,8403,9668"; a="126107148" X-IronPort-AV: E=Sophos;i="5.75,299,1589266800"; d="scan'208";a="126107148" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2020 23:05:13 -0700 IronPort-SDR: zGrpZEjPLv6v4aBCCI0PRdZ3hdKCaB2lGF8Xaguyxxouxfgzm/ok345Pq8uH8B46NEvkb7CqiM r+NPQJNGLpxQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,299,1589266800"; d="scan'208";a="312584972" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga008.jf.intel.com with ESMTP; 30 Jun 2020 23:05:13 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 30 Jun 2020 23:05:11 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 30 Jun 2020 23:05:11 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 30 Jun 2020 23:05:11 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0439.000; Wed, 1 Jul 2020 14:05:08 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/port_control:change vm dpdk driver from igb_uio to vfio-pci Thread-Index: AQHWTedta0FTTIDAdEiRjwEndf9nDqjyP07Q Date: Wed, 1 Jul 2020 06:05:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68068@SHSMSX101.ccr.corp.intel.com> References: <20200629073031.7689-1-weix.xie@intel.com> In-Reply-To: <20200629073031.7689-1-weix.xie@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="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/port_control:change vm dpdk driver from igb_uio to vfio-pci 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 On Behalf Of Xie wei > Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B29=1B$BF|=1B(B 15:31 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/port_control:change vm dpdk driver from > igb_uio to vfio-pci >=20 > Change driver to vfio-pci on vm. Add param '--vfio-intr=3Dlegacy' to fix = port link > status still down issue, add some time to wait link status up. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_port_control.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_contr= ol.py > index 1a588d3..147dc80 100644 > --- a/tests/TestSuite_port_control.py > +++ b/tests/TestSuite_port_control.py > @@ -157,8 +157,8 @@ class TestPortControl(TestCase): > terminal.send_expect("ifconfig %s hw ether %s" % (vf_if[1], self= .vf_mac), > "#") > terminal.send_expect("ifconfig %s up" % vf_if[1], "#") > terminal.send_expect("ip addr flush %s " % vf_if[1], "#") > - terminal.send_expect("./usertools/dpdk-devbind.py -b igb_uio --f= orce %s" % > vf_pci[1], "#") > - cmd =3D "./%s/app/testpmd -n 1 -w %s -- -i" % (self.target, vf_p= ci[1]) > + terminal.send_expect("./usertools/dpdk-devbind.py -b vfio-pci --= force %s" % > vf_pci[1], "#") > + cmd =3D "./%s/app/testpmd -n 1 -w %s --vfio-intr=3Dlegacy -- -i"= % > + (self.target, vf_pci[1]) > terminal.send_expect(cmd, "testpmd>", 10) >=20 > def start_testpmd(self, terminal): > @@ -171,6 +171,7 @@ class TestPortControl(TestCase): > def start_pmd_port(self, terminal): > terminal.execute_cmd("port start all") > terminal.execute_cmd("start") > + time.sleep(5) > terminal.wait_link_status_up('all', timeout=3D5) > ret =3D terminal.get_port_link_status(self.port_id_0) > self.verify(ret =3D=3D "up", "port not up!") > -- > 2.17.1