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 08F37A2EFC for ; Wed, 18 Sep 2019 07:06:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 01E191BF70; Wed, 18 Sep 2019 07:06:53 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 93AFD1BF2E for ; Wed, 18 Sep 2019 07:06:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2019 22:06:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,519,1559545200"; d="scan'208";a="186361500" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 17 Sep 2019 22:06:49 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 17 Sep 2019 22:06:48 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 17 Sep 2019 22:06:48 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.89]) with mapi id 14.03.0439.000; Wed, 18 Sep 2019 13:06:47 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/fortville_rss_granularity_config and vxlan: check ports status before send pkt Thread-Index: AQHVYwAIK9c8r6lEhkuCA3nwS6AuUqcw97gA Date: Wed, 18 Sep 2019 05:06:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB23A77@SHSMSX101.ccr.corp.intel.com> References: <1567619949-40730-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1567619949-40730-1-git-send-email-wenjiex.a.li@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmNmNjNkM2QtMDFjYy00OGM1LTkzMmYtOTBkODVkYWIyZGIxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaHZ5NnVOMHZZMzlSaGw1TUZKSVhzc0owQ0ZyVlRrQXhrWlROY0pIeFlSc3lyem1cL3FGRnA0SHVNWEI4VEtVNkQifQ== 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 V1] tests/fortville_rss_granularity_config and vxlan: check ports status before send pkt 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 Wenjie Li > Sent: Thursday, September 5, 2019 1:59 AM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/fortville_rss_granularity_config and vxla= n: > check ports status before send pkt >=20 > check ports status before send packets. >=20 > Signed-off-by: Wenjie Li > --- > ...tSuite_fortville_rss_granularity_config.py | 20 +++++++++++++++++++ > tests/TestSuite_vxlan.py | 13 ++++++++++++ > 2 files changed, 33 insertions(+) >=20 > diff --git a/tests/TestSuite_fortville_rss_granularity_config.py > b/tests/TestSuite_fortville_rss_granularity_config.py > index 0d19c93..e827df2 100644 > --- a/tests/TestSuite_fortville_rss_granularity_config.py > +++ b/tests/TestSuite_fortville_rss_granularity_config.py > @@ -52,6 +52,7 @@ import random > import re > import utils > import dut > +from pmd_output import PmdOutput >=20 > testQueues =3D [16] > reta_entries =3D [] > @@ -85,6 +86,7 @@ class TestFortvilleRssGranularityConfig(TestCase): > dutPorts =3D self.dut.get_ports(self.nic) > localPort =3D self.tester.get_local_port(dutPorts[0]) > self.itf =3D self.tester.get_interface(localPort) > + self.pmdout =3D PmdOutput(self.dut) >=20 > def set_up(self): > """ > @@ -207,6 +209,9 @@ class TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz ipv4-tcp enable", "t= estpmd> ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss tcp", "testpmd> ") > self.send_packet(self.itf, "ipv4-tcp") @@ -278,6 +283,9 @@ c= lass > TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz ipv4-udp enable", "t= estpmd> ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss udp", "testpmd> ") > self.send_packet(self.itf, "ipv4-udp") @@ -350,6 +358,9 @@ c= lass > TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz ipv6-tcp enable", "t= estpmd> ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss tcp", "testpmd> ") > self.send_packet(self.itf, "ipv6-tcp") @@ -422,6 +433,9 @@ c= lass > TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz ipv6-udp enable", "t= estpmd> ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss udp", "testpmd> ") > self.send_packet(self.itf, "ipv6-udp") @@ -495,6 +509,9 @@ c= lass > TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz l2_payload enable", = "testpmd> > ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss ether", "testpmd> ") > self.send_packet(self.itf, "l2_payload") @@ -550,6 +567,9 @@= class > TestFortvilleRssGranularityConfig(TestCase): > self.dut.send_expect( > "set_hash_global_config 0 toeplitz ipv4-other enable", = "testpmd> > ") > self.dut.send_expect("port start all", "testpmd> ") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + > self.dut.send_expect( > "port config all rss all", "testpmd> ") > self.send_packet(self.itf, "ipv4-other") diff --git > a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index > ecc3f3a..acbb8b5 100644 > --- a/tests/TestSuite_vxlan.py > +++ b/tests/TestSuite_vxlan.py > @@ -555,6 +555,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.dut.send_expect("set verbose 1", "testpmd>", 10) > self.enable_vxlan(self.dut_port) > self.enable_vxlan(self.recv_port) > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") >=20 > # check normal packet > self.send_and_detect(outer_udp_dst=3D1234) > @@ -605,6 +607,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.dut.send_expect("set verbose 1", "testpmd>", 10) > self.enable_vxlan(self.dut_port) > self.enable_vxlan(self.recv_port) > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") >=20 > # check normal ipv6 packet > self.send_and_detect(outer_ip6_src=3D"FE80:0:0:0:0:0:0:0", > @@ -662,6 +666,9 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.dut.send_expect("port start all", "testpmd>") > self.dut.send_expect("csum parse-tunnel on %d" % > self.recv_port, "testpmd>", 10) > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + >=20 > self.enable_vxlan(self.dut_port) > self.enable_vxlan(self.recv_port) @@ -736,6 +743,7 @@ class > TestVxlan(TestCase, IxiaPacketGenerator): >=20 > self.enable_vxlan(self.dut_port) > self.enable_vxlan(self.recv_port) > + time.sleep(10) #lwj >=20 > # check normal ipv6 packet > self.send_and_check(outer_ip6_src=3D"FE80:0:0:0:0:0:0:0", > @@ -1145,6 +1153,8 @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.dut.send_expect("port start all", "testpmd>") > self.verify("Bad arguments" not in out, "Failed to set vxlan csu= m") > self.verify("error" not in out, "Failed to set vxlan csum") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") >=20 > def csum_set_sw(self, proto, port): > self.dut.send_expect("port stop all", "testpmd>") @@ -1153,6 +11= 63,9 > @@ class TestVxlan(TestCase, IxiaPacketGenerator): > self.dut.send_expect("port start all", "testpmd>") > self.verify("Bad arguments" not in out, "Failed to set vxlan csu= m") > self.verify("error" not in out, "Failed to set vxlan csum") > + res =3D self.pmdout.wait_link_status_up("all") > + self.verify(res is True, "link is donw") > + >=20 > def tunnel_filter_add(self, *args): > # tunnel_filter add port_id outer_mac inner_mac ip inner_vlan > -- > 2.17.1