From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id A14BC1B936 for ; Fri, 11 Jan 2019 08:31:29 +0100 (CET) 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/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2019 23:31:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,464,1539673200"; d="scan'208";a="109063342" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 10 Jan 2019 23:31:27 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 10 Jan 2019 23:31:27 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.63]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.46]) with mapi id 14.03.0415.000; Fri, 11 Jan 2019 15:30:43 +0800 From: "Zhao, MeijuanX" To: "Lin, Xueqin" , "dts@dpdk.org" CC: "Lin, Xueqin" , "Zhao, MeijuanX" Thread-Topic: [dts] [PATCH] tests/ddp_mpls: fix nic support and core reset issues Thread-Index: AQHUp0wZRECZW1NmNEaBRJpbWKgnUKWprvlQ Date: Fri, 11 Jan 2019 07:30:42 +0000 Message-ID: <9866F1E5CE768A45B24F6603C6EF54DE05A4CEF1@shsmsx102.ccr.corp.intel.com> References: <1546928165-173890-1-git-send-email-xueqin.lin@intel.com> In-Reply-To: <1546928165-173890-1-git-send-email-xueqin.lin@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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/ddp_mpls: fix nic support and core reset issues 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: , X-List-Received-Date: Fri, 11 Jan 2019 07:31:30 -0000 Tested-by : Zhao, MeijuanX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin Sent: Tuesday, January 8, 2019 2:16 PM To: dts@dpdk.org Cc: Lin, Xueqin Subject: [dts] [PATCH] tests/ddp_mpls: fix nic support and core reset issue= s From: "xueqin.lin" 1. DDP MPLs could support FVL nic, not only fortville_25g. 2. Restore original profile instead of core reset to avoid exception. Signed-off-by: Xueqin Lin --- tests/TestSuite_ddp_mpls.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_ddp_mpls.py b/tests/TestSuite_ddp_mpls.py inde= x 691e958..b002788 100644 --- a/tests/TestSuite_ddp_mpls.py +++ b/tests/TestSuite_ddp_mpls.py @@ -18,8 +18,8 @@ VF_MAX_QUEUE =3D 4 class Testddp_mpls(TestCase): =20 def set_up_all(self): - self.verify(self.nic in ['fortville_25g'],=20 - 'ddp mpls can not support %s nic' % self.nic) + self.verify('fortville' in self.nic, + 'ddp mpls can not support %s nic' % self.nic) self.dut_ports =3D self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports") self.vm0 =3D None @@ -123,7 +123,7 @@ class Testddp_mpls(TestCase): out =3D self.dut_testpmd.execute_cmd('ddp get list 0') self.verify("Profile number is: 0" in out, "Failed to get ddp profile info list!!!")=20 - self.dut_testpmd.execute_cmd('ddp add 0 /tmp/mpls.pkgo') + self.dut_testpmd.execute_cmd('ddp add 0=20 + /tmp/mpls.pkgo,/tmp/mpls.bak') out =3D self.dut_testpmd.execute_cmd('ddp get list 0') self.verify("Profile number is: 1" in out, "Failed to load ddp profile!!!") @@ -224,13 +224,19 @@ class T= estddp_mpls(TestCase): =20 =20 def tear_down(self): - if self.vm0_testpmd: - self.dut_testpmd.execute_cmd('write reg 0 0xb8190 1') - self.dut_testpmd.execute_cmd('write reg 0 0xb8190 2') - self.vm0_testpmd.quit() - self.dut_testpmd.quit() - self.vm0_dut.kill_all() - pass + self.vm0_testpmd.execute_cmd('stop') + self.dut_testpmd.execute_cmd('stop') + out =3D self.dut_testpmd.execute_cmd('ddp get list 0') + if "Profile number is: 0" not in out: + self.dut_testpmd.execute_cmd('port stop all') + time.sleep(1) + self.dut_testpmd.execute_cmd('ddp del 0 /tmp/mpls.bak') + out =3D self.dut_testpmd.execute_cmd('ddp get list 0') + self.verify("Profile number is: 0" in out, + "Failed to delete mpls profile!!!") + self.dut_testpmd.execute_cmd('port start all') + self.vm0_testpmd.quit() + self.dut_testpmd.quit() =20 =20 def tear_down_all(self): -- 2.7.5