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 CBC65A00E6 for ; Thu, 13 Jun 2019 11:11:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C2E891D37F; Thu, 13 Jun 2019 11:11:41 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 358681D37A for ; Thu, 13 Jun 2019 11:11:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2019 02:11:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,369,1557212400"; d="scan'208";a="184549079" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 13 Jun 2019 02:11:39 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 13 Jun 2019 02:11:39 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 13 Jun 2019 02:11:39 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.104]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.72]) with mapi id 14.03.0439.000; Thu, 13 Jun 2019 17:11:37 +0800 From: "Tu, Lijuan" To: "pvukkisala@marvell.com" , "dts@dpdk.org" CC: "avijay@marvell.com" , "fmasood@marvell.com" Thread-Topic: [dts] [PATCH] pmd: Support test in vector mode Thread-Index: AQHVIbaqBJd8Q4nZ8UyBZ0Fu6hz0vqaZTI9w Date: Thu, 13 Jun 2019 09:11:36 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BABD0B4@SHSMSX101.ccr.corp.intel.com> References: <1560409623-9118-1-git-send-email-pvukkisala@marvell.com> In-Reply-To: <1560409623-9118-1-git-send-email-pvukkisala@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDNmMTNlOTktNDI1Yy00NzZhLWI5NjItY2FhYTgxYWVlNjAxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYVkxRnNDVm9MOXM3dktmeDhJOFcyTFwvSVErQVFqeHd5U1hMd1YwR3c1XC9LbmpSb3lzUWdxQWMyREdVcVJURXpcLyJ9 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] pmd: Support test in 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 > pvukkisala@marvell.com > Sent: Thursday, June 13, 2019 3:07 PM > To: dts@dpdk.org > Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala > > Subject: [dts] [PATCH] pmd: Support test in vector mode >=20 > From: Phanendra Vukkisala >=20 > Vector mode processes frames in multiples of 4 >=20 > Signed-off-by: Phanendra Vukkisala > --- > tests/TestSuite_pmd.py | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) >=20 > diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py index > f5df8d5..bc3f6a7 100644 > --- a/tests/TestSuite_pmd.py > +++ b/tests/TestSuite_pmd.py > @@ -338,8 +338,8 @@ class TestPmd(TestCase,IxiaPacketGenerator): > l4csum_error =3D self.stop_and_get_l4csum_errors() >=20 > # Check the l4 checksum errors reported for Rx port > - self.verify(1 =3D=3D int(l4csum_error[1]), > - "Wrong l4 checksum error count using rxfreet=3D%= d (expected 1, > reported %s)" % > + self.verify(4 =3D=3D int(l4csum_error[1]), > + "Wrong l4 checksum error count using rxfreet=3D%= d > + (expected 4, reported %s)" % > (rxfreet_value, l4csum_error[1])) >=20 > self.dut.send_expect("quit", "# ", 30) @@ -407,7 +407,7 @@ c= lass > TestPmd(TestCase,IxiaPacketGenerator): >=20 > self.tester.scapy_foreground() > self.tester.scapy_append('nutmac=3D"%s"' % mac) > - self.tester.scapy_append('sendp([Ether(dst=3Dnutmac, > src=3D"52:00:00:00:00:00")/IP(len=3D%s)/UDP(%s)/Raw(load=3D"\x50"*%s)], > iface=3D"%s")' % ( > + self.tester.scapy_append('sendp([Ether(dst=3Dnutmac, > + src=3D"52:00:00:00:00:00")/IP(len=3D%s)/UDP(%s)/Raw(load=3D"\x50"*%s)], > + iface=3D"%s", count=3D4)' % ( > load_size, checksum, padding, interface)) >=20 > out =3D self.tester.scapy_execute() @@ -429,11 +429,11 @@ class > TestPmd(TestCase,IxiaPacketGenerator): > self.verify(self.pmdout.check_tx_bytes(p0tx_pkts, p1rx_pkts), > "packet pass assert error, %d RX packets, %d TX pack= ets" % > (p1rx_pkts, p0tx_pkts)) >=20 > - self.verify(p1rx_bytes =3D=3D frame_size - 4, > - "packet pass assert error, expected %d RX bytes, act= ual %d" % > (frame_size - 4, p1rx_bytes)) > + self.verify(p1rx_bytes =3D=3D (frame_size - 4)*4, > + "packet pass assert error, expected %d RX bytes, > + actual %d" % ((frame_size - 4)*4, p1rx_bytes)) >=20 > - self.verify(self.pmdout.check_tx_bytes(p0tx_bytes, frame_size - = 4), > - "packet pass assert error, expected %d TX bytes, act= ual %d" % > (frame_size - 4, p0tx_bytes)) > + self.verify(self.pmdout.check_tx_bytes(p0tx_bytes, (frame_size -= 4)*4), > + "packet pass assert error, expected %d TX bytes, > + actual %d" % ((frame_size - 4)*4, p0tx_bytes)) >=20 > return out >=20 > -- > 1.7.9.5