From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id DF315A00E6 for ; Wed, 12 Jun 2019 04:51:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C22CA1D0FA; Wed, 12 Jun 2019 04:51:26 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id C99991D0F4 for ; Wed, 12 Jun 2019 04:51:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2019 19:51:24 -0700 X-ExtLoop1: 1 Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 11 Jun 2019 19:51:24 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 11 Jun 2019 19:51:24 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.104]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.98]) with mapi id 14.03.0415.000; Wed, 12 Jun 2019 10:51:22 +0800 From: "Tu, Lijuan" To: "nareddy@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_dynamic_config.py : Modified send packet count to support vector mode Thread-Index: AQHVH1MQdaMNDQHUqkCR0bCFYzl7MaaXVMQQ Date: Wed, 12 Jun 2019 02:51:21 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAB93ED@SHSMSX101.ccr.corp.intel.com> References: <1560146951-31322-1-git-send-email-nareddy@marvell.com> In-Reply-To: <1560146951-31322-1-git-send-email-nareddy@marvell.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.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzQwYzU3ZDgtY2UxNC00YzcwLTgxMTUtMTFmNzAzMWMyOGU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUWNnY2ZQcDI4OERRUTZRaDh2UDE2aEhPNElEblhrdDFpQXdnbitoa2JDelp2NlV5dzJFd0JmWHV2eGdTRXFyRyJ9 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] TestSuite_dynamic_config.py : Modified send packet count to support vector mode 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 > nareddy@marvell.com > Sent: Monday, June 10, 2019 2:09 PM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; Praneeth Reddy > > Subject: [dts] [PATCH] TestSuite_dynamic_config.py : Modified send packet > count to support vector mode >=20 > From: Praneeth Reddy >=20 > In vector mode 4 packets are required. > Modified packet count to 4 in all test cases. >=20 > Signed-off-by: Praneeth Reddy > --- > tests/TestSuite_dynamic_config.py | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_dynamic_config.py > b/tests/TestSuite_dynamic_config.py > index 012421c..301f5b7 100644 > --- a/tests/TestSuite_dynamic_config.py > +++ b/tests/TestSuite_dynamic_config.py > @@ -105,7 +105,7 @@ class TestDynamicConfig(TestCase): >=20 > self.tester.scapy_foreground() > self.tester.scapy_append( > - 'sendp([Ether(dst=3D"%s", src=3D"52:00:00:00:00:00")/Raw(loa= d=3D"X"*26)], > iface=3D"%s")' % (destMac, itf)) > + 'sendp([Ether(dst=3D"%s", > + src=3D"52:00:00:00:00:00")/Raw(load=3D"X"*26)], iface=3D"%s", count=3D4= )' % > + (destMac, itf)) >=20 > self.tester.scapy_execute() >=20 > @@ -142,7 +142,7 @@ class TestDynamicConfig(TestCase): >=20 > # check the packet increment > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) > - + 1, "1st packet increment check error") > + + 4, "1st packet increment check error") >=20 > # send one packet with the portid MAC address > self.dynamic_config_send_packet(portid, self.dest) @@ -153,7 +15= 3,7 > @@ class TestDynamicConfig(TestCase): >=20 > # check the packet increment > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) > - + 1, "2nd packet increment check error") > + + 4, "2nd packet increment check error") >=20 > def test_dynamic_config_disable_promiscuous(self): > """ > @@ -180,7 +180,7 @@ class TestDynamicConfig(TestCase): > "show port stats %d" % self.dut_ports[1], "testpmd> ") > cur_rxpkt =3D utils.regexp(out, "TX-packets: ([0-9]+)") > self.verify(int(cur_rxpkt) =3D=3D int( > - pre_rxpkt) + 1, "2nd packet increment error") > + pre_rxpkt) + 4, "2nd packet increment error") >=20 > def test_dynamic_config_broadcast(self): > """ > @@ -198,7 +198,7 @@ class TestDynamicConfig(TestCase): > out =3D self.dut.send_expect("show port stats %d" % self.dut_por= ts[1], > "testpmd> ") >=20 > cur_rxpkt =3D utils.regexp(out, "TX-packets: ([0-9]+)") > - self.verify(int(cur_rxpkt) =3D=3D 1, "not received broadcast pac= ket") > + self.verify(int(cur_rxpkt) =3D=3D 4, "not received broadcast > + packet") >=20 > self.dut.send_expect("clear port stats all", "testpmd> ") >=20 > @@ -224,7 +224,7 @@ class TestDynamicConfig(TestCase): > out =3D self.dut.send_expect("show port stats %d" % self.dut_por= ts[1], > "testpmd> ") >=20 > cur_rxpkt =3D utils.regexp(out, "TX-packets: ([0-9]+)") > - self.verify(int(cur_rxpkt) =3D=3D 1, "enable allmulti switch, no= t received > allmulti packet") > + self.verify(int(cur_rxpkt) =3D=3D 4, "enable allmulti switch, no= t > + received allmulti packet") >=20 > self.dut.send_expect("clear port stats all", "testpmd> ") > self.dut.send_expect("set allmulti all off", "testpmd> ") @@ -25= 7,7 > +257,7 @@ class TestDynamicConfig(TestCase): >=20 > # check the packet increment > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) > - + 1, "1st packet increment error") > + + 4, "1st packet increment error") >=20 > # send one packet with the portid MAC address > self.dynamic_config_send_packet(portid, self.dest) @@ -268,7 +26= 8,7 > @@ class TestDynamicConfig(TestCase): >=20 > # check the packet increment > self.verify(int(cur_rxpkt) =3D=3D int(pre_rxpkt) > - + 1, "2nd packet increment error") > + + 4, "2nd packet increment error") >=20 > #self.dut.send_expect("quit", "# ", 30) >=20 > -- > 1.8.3.1