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 F2750A0540; Mon, 20 Jul 2020 08:57:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E9ED81BED7; Mon, 20 Jul 2020 08:57:46 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 323161BEC0 for ; Mon, 20 Jul 2020 08:57:45 +0200 (CEST) IronPort-SDR: yeyqfPeghewDcp0iAApzkG51GNYVwibHj2svXZORDNhUTCRJtgmy6MtdUN5iQ0uPnKwZDik+MC LMjrjZHgO2YQ== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="167991992" X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="167991992" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2020 23:57:44 -0700 IronPort-SDR: v1dkDh/M3/XSftRbniVD1kiwpDms/DNN5zf2/Nc7ObowaOWTEz8PO7s39Pn4DTSeNp1WKGub99 ZUtTscWMWSYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="461578894" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP; 19 Jul 2020 23:57:43 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 19 Jul 2020 23:57:43 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 19 Jul 2020 23:57:43 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.8]) with mapi id 14.03.0439.000; Mon, 20 Jul 2020 14:57:40 +0800 From: "Tu, Lijuan" To: "Chen, BoX C" , "dts@dpdk.org" CC: "Chen, BoX C" Thread-Topic: [dts] [PATCH V1] Fix VF driver problem Thread-Index: AQHWUQv994u9auPfBEeBzC1a8WNeNakQI/uA Date: Mon, 20 Jul 2020 06:57:40 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC821A9@SHSMSX101.ccr.corp.intel.com> References: <20200703071956.29627-1-box.c.chen@intel.com> In-Reply-To: <20200703071956.29627-1-box.c.chen@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] Fix VF driver problem 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 ChenBo > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B3=1B$BF|=1B(B 15:20 > To: dts@dpdk.org > Cc: Chen, BoX C > Subject: [dts] [PATCH V1] Fix VF driver problem >=20 > After creating VF, VF needs to be bound to the default driver to generate= the > port name. >=20 > Signed-off-by: ChenBo > --- > tests/TestSuite_cvl_dcf_switch_filter.py | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py > b/tests/TestSuite_cvl_dcf_switch_filter.py > index 5c39eaa..1a51d40 100644 > --- a/tests/TestSuite_cvl_dcf_switch_filter.py > +++ b/tests/TestSuite_cvl_dcf_switch_filter.py > @@ -903,7 +903,8 @@ class SwitchFilterTest(TestCase): > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports") > localPort =3D self.tester.get_local_port(self.dut_ports[0]) > self.__tx_iface =3D self.tester.get_interface(localPort) > - self.dut.send_expect("ifconfig %s up" % self.__tx_iface, "# ") > + self.tester.send_expect("ifconfig %s up" % self.__tx_iface, "# "= ) > + self.dut.send_expect("ifconfig %s up" % self.dut_ports[0], "# > + ") > self.pkt =3D Packet() > self.testpmd_status =3D "close" > self.suite_config =3D rfc.get_suite_config(self) @@ -1586,6 +158= 7,7 @@ > class SwitchFilterTest(TestCase): > #sort the vf interfaces and pcis by pcis > vfs =3D {} > for vf_port in self.sriov_vfs_port: > + vf_port.bind_driver() > vfs[vf_port.pci] =3D vf_port.intf_name > vfs_sort =3D sorted(vfs.items(), key=3Dlambda item:item[0]) > vf_pci =3D [key for key,value in vfs_sort] @@ -1808,7 +1810,7 @@= class > SwitchFilterTest(TestCase): > """ > if self.testpmd_status !=3D "close": > # destroy all flow rules on DCF > - self.dut.send_expect("flow flush 0", "testpmd> ", 15) > + self.dut.send_expect("flow flush 0", "testpmd> ", 120) > self.dut.send_expect("clear port stats all", "testpmd> ", 15= ) > self.dut.send_expect("quit", "#", 15) > self.testpmd_status =3D "close" > -- > 2.17.1