From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7C3AE683E for ; Tue, 15 Jan 2019 05:55:59 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2019 20:55:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,480,1539673200"; d="scan'208";a="125950627" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jan 2019 20:55:57 -0800 Received: from fmsmsx161.amr.corp.intel.com (10.18.125.9) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 14 Jan 2019 20:55:57 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX161.amr.corp.intel.com (10.18.125.9) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 14 Jan 2019 20:55:56 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.196]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.239]) with mapi id 14.03.0415.000; Tue, 15 Jan 2019 12:55:55 +0800 From: "Tu, Lijuan" To: "Lin, Xueqin" , "dts@dpdk.org" CC: "Lin, Xueqin" Thread-Topic: [dts] [PATCH] tests/dynamic_flowtype: fix dynamic flowtype issues Thread-Index: AQHUpz0GntlCUJoNMkOpo0E6zXPXkKWvzqwg Date: Tue, 15 Jan 2019 04:55:54 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA028DA@SHSMSX101.ccr.corp.intel.com> References: <1546921693-168124-1-git-send-email-xueqin.lin@intel.com> In-Reply-To: <1546921693-168124-1-git-send-email-xueqin.lin@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.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2U2MTU1YWItM2I0YS00NmY5LTkxODgtZmMyODNmNzBlZjc0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidG1TTHRkdWM3ZUNHeVJZVnY4dHNXM3hUOWFxZXNPT1hacXl2UUdDV3ZBbWFOVWtZSWZJbXpjdW1cL0kyMU1QalUifQ== 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/dynamic_flowtype: fix dynamic flowtype 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: Tue, 15 Jan 2019 04:56:00 -0000 Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin > Sent: Tuesday, January 8, 2019 12:28 PM > To: dts@dpdk.org > Cc: Lin, Xueqin > Subject: [dts] [PATCH] tests/dynamic_flowtype: fix dynamic flowtype issue= s >=20 > From: "xueqin.lin" >=20 > 1. Dynamic flowtype could support FVL nic, not only fortville_25g. > 2. RSS works also could receive packets from queue 0. > 3. Restore original profile instead of core reset to avoid exception. >=20 > Signed-off-by: Xueqin Lin >=20 > --- > tests/TestSuite_dynamic_flowtype.py | 21 +++++++++++++-------- > 1 file changed, 13 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_dynamic_flowtype.py > b/tests/TestSuite_dynamic_flowtype.py > index 05e6bcb..4652955 100644 > --- a/tests/TestSuite_dynamic_flowtype.py > +++ b/tests/TestSuite_dynamic_flowtype.py > @@ -12,7 +12,7 @@ VM_CORES_MASK =3D 'all' > class TestDynamicFlowtype(TestCase): >=20 > def set_up_all(self): > - self.verify(self.nic in ['fortville_25g'], > + self.verify('fortville' in self.nic, > 'dynamic flow type mapping can not support %s nic' > % self.nic) > ports =3D self.dut.get_ports() > @@ -61,7 +61,7 @@ class TestDynamicFlowtype(TestCase): > self.dut_testpmd.execute_cmd('port stop all') > time.sleep(1) > out =3D self.dut_testpmd.execute_cmd('ddp get list 0') > - self.dut_testpmd.execute_cmd('ddp add 0 /tmp/gtp.pkgo') > + self.dut_testpmd.execute_cmd('ddp add 0 > + /tmp/gtp.pkgo,/tmp/gtp.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!!!") @@ -179,8 +179,6 @@= class > TestDynamicFlowtype(TestCase): > self.tester.scapy_execute() > out =3D self.dut.get_session_output(timeout=3D2) > if match_opt =3D=3D 'matched': > - self.verify("port 0/queue 0" not in out, > - "Failed to receive packet in rss queue!!!") > self.verify("PKT_RX_RSS_HASH" in out, > "Failed to receive packet in rss queue!!!") > elif match_opt =3D=3D 'not matched': > @@ -280,10 +278,17 @@ class TestDynamicFlowtype(TestCase): > self.dynamic_flowtype_test(pctype=3D25, flowtype=3D25, reset=3DF= alse) >=20 > def tear_down(self): > - if self.dut_testpmd: > - self.dut_testpmd.execute_cmd('write reg 0 0xb8190 1') > - self.dut_testpmd.execute_cmd('write reg 0 0xb8190 2') > - self.dut_testpmd.quit() > + 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/gtp.bak') > + out =3D self.dut_testpmd.execute_cmd('ddp get list 0') > + self.verify("Profile number is: 0" in out, > + "Failed to delete ddp profile!!!") > + self.dut_testpmd.execute_cmd('port start all') > + self.dut_testpmd.quit() >=20 > def tear_down_all(self): > self.dut.kill_all() > -- > 2.7.5