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 C08E6A2E1B for ; Wed, 4 Sep 2019 06:53:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D1AA1EC45; Wed, 4 Sep 2019 06:53:09 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 668EA1EC25 for ; Wed, 4 Sep 2019 06:53:07 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2019 21:53:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,465,1559545200"; d="scan'208";a="198938230" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 03 Sep 2019 21:53:06 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Sep 2019 21:53:06 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Sep 2019 21:53:05 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.86]) with mapi id 14.03.0439.000; Wed, 4 Sep 2019 12:53:04 +0800 From: "Tu, Lijuan" To: "Zhao, XinfengX" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH] tests: modify the cmd of tester bind driver Thread-Index: AQHVWYoizvD3Cd0Efkuta87sjUGg+acbBibA Date: Wed, 4 Sep 2019 04:53:03 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB1ADB3@SHSMSX101.ccr.corp.intel.com> References: <1566518107-57554-1-git-send-email-xinfengx.zhao@intel.com> In-Reply-To: <1566518107-57554-1-git-send-email-xinfengx.zhao@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmFjZTA5NDAtODExYy00MGY1LTg4OGMtZDZjNDY1YjMwNzlmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib256V2RaTHdJTDhnXC9sZThvMHhvbllBc3RlNitiUkhHNWNKSW1rTmlVeUVnN3I2bUNEVW5oZml0NlV5b1Y0NnoifQ== 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] tests: modify the cmd of tester bind driver 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 Xinfeng Zhao > Sent: Friday, August 23, 2019 7:55 AM > To: dts@dpdk.org > Cc: Zhao, XinfengX > Subject: [dts] [PATCH] tests: modify the cmd of tester bind driver >=20 > add "--force" in binding command to allow active links to be bind, and > modify the bind back cmd >=20 > Signed-off-by: Xinfeng Zhao > --- > tests/TestSuite_vf_port_start_stop.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_port_start_stop.py > b/tests/TestSuite_vf_port_start_stop.py > index 7cb797b..2ff2d1c 100644 > --- a/tests/TestSuite_vf_port_start_stop.py > +++ b/tests/TestSuite_vf_port_start_stop.py > @@ -85,7 +85,7 @@ class TestVfPortStartStop(TestCase): > self.tester_tx_pci =3D self.tester.ports_info[self.tester_tx_por= t]['pci'] > port =3D self.tester.ports_info[self.tester_tx_port]['port'] > self.tester_port_driver =3D port.get_nic_driver() > - self.tester.send_expect("./dpdk-devbind.py --bind=3Digb_uio %s" = % > self.tester_tx_pci, "#") > + self.tester.send_expect("./dpdk-devbind.py --force > + --bind=3Digb_uio %s" % self.tester_tx_pci, "#") >=20 > src_mac =3D self.tester.get_mac(self.tester_tx_port) > if src_mac =3D=3D 'N/A': > @@ -245,7 +245,7 @@ class TestVfPortStartStop(TestCase): > self.pktgen_kill() > if getattr(self, 'tester_port_driver', None) and \ > getattr(self, 'tester_tx_pci', None): > - self.tester.send_expect("./dpdk_nic_bind.py --bind=3D%s %s" = \ > + self.tester.send_expect("./dpdk-devbind.py --bind=3D%s %s" \ > %(self.tester_port_driver, self.tester_tx_pci), "#") > tx_interface =3D self.tester.get_interface(self.tester_tx_po= rt) > self.tester.send_expect("ifconfig %s up" % tx_interface, "#"= ) > -- > 2.17.1