From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 35C028D85 for ; Fri, 27 Nov 2015 09:09:57 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 27 Nov 2015 00:09:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,351,1444719600"; d="scan'208";a="695363162" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 27 Nov 2015 00:09:56 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 27 Nov 2015 00:09:55 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 27 Nov 2015 00:09:55 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.138]) by shsmsx102.ccr.corp.intel.com ([169.254.2.42]) with mapi id 14.03.0248.002; Fri, 27 Nov 2015 16:09:53 +0800 From: "Liu, Yong" To: "Gu, YongjieX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] change the verification of pktbytes in pmd cases Thread-Index: AQHRKOM81TrUHQu1zkuX+qIbR1ecl56vhCrA Date: Fri, 27 Nov 2015 08:09:53 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F70458@SHSMSX103.ccr.corp.intel.com> References: <1448608174-27198-1-git-send-email-yongjiex.gu@intel.com> In-Reply-To: <1448608174-27198-1-git-send-email-yongjiex.gu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-inteldataclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiJlMTY2MTViOC0wNjIxLTQ1ZjctODRmMC04MGQ3MDQxNmViYWMiLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfSUMifV19XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTUuNC4xMC4xOSIsIlRydXN0ZWRMYWJlbEhhc2giOiJYNFBsQXZBQnFTejBlbVpYTHV6WjdjcXJwOG56QU54cmM5VFAzYkk4M1M0PSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "Gu, YongjieX" Subject: Re: [dts] [PATCH] change the verification of pktbytes in pmd cases 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, 27 Nov 2015 08:09:57 -0000 Thanks, applied. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yongjie > Sent: Friday, November 27, 2015 3:10 PM > To: dts@dpdk.org > Cc: Gu, YongjieX > Subject: [dts] [PATCH] change the verification of pktbytes in pmd cases >=20 > From: Gu yongjie >=20 > Change the verification of pktbytes,because DPDK removes the crc bytes > from byte counter. >=20 > Signed-off-by: Gu yongjie > --- > tests/TestSuite_pmd.py | 20 ++++++-------------- > 1 files changed, 6 insertions(+), 14 deletions(-) >=20 > diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py > index 29dec2b..bfd5e03 100644 > --- a/tests/TestSuite_pmd.py > +++ b/tests/TestSuite_pmd.py > @@ -299,7 +299,7 @@ class TestPmd(TestCase,IxiaPacketGenerator): >=20 > for rxfreet_value in self.rxfreet_values: >=20 > - self.pmdout.start_testpmd("all", "--coremask=3D%s --portmask= =3D%s > --nb-cores=3D2 --enable-rx-cksum --disable-hw-vlan --disable-rss --crc-st= rip > --rxd=3D1024 --txd=3D1024 --rxfreet=3D%d" % (core_mask, port_mask, > rxfreet_value)) > + self.pmdout.start_testpmd("all", "--coremask=3D%s --portmask= =3D%s > --nb-cores=3D2 --enable-rx-cksum --disable-hw-vlan --disable-rss --rxd=3D= 1024 > --txd=3D1024 --rxfreet=3D%d" % (core_mask, port_mask, rxfreet_value)) > self.dut.send_expect("set fwd csum", "testpmd> ") > self.dut.send_expect("start", "testpmd> ") >=20 > @@ -402,19 +402,11 @@ class TestPmd(TestCase,IxiaPacketGenerator): > self.verify(p0tx_pkts =3D=3D p1rx_pkts, > "packet pass assert error, %d RX packets, %d TX > packets" % (p1rx_pkts, p0tx_pkts)) >=20 > - if checksum_test: > - if self.nic in ["powerville", "springville", "kawela_4"]: > - self.verify(p1rx_bytes =3D=3D frame_size, > - "packet pass assert error, expected %d RX > bytes, actual %d" % (frame_size, p1rx_bytes)) > - else: > - self.verify(p1rx_bytes =3D=3D frame_size - 4, > - "packet pass assert error, expected %d RX > bytes, actual %d" % (frame_size - 4, p1rx_bytes)) > - else: > - self.verify(p1rx_bytes =3D=3D frame_size, > - "packet pass assert error, expected %d RX bytes, > actual %d" % (frame_size, p1rx_bytes)) > - > - self.verify(p0tx_bytes =3D=3D frame_size, > - "packet pass assert error, expected %d TX bytes, > actual %d" % (frame_size, p0tx_bytes)) > + self.verify(p1rx_bytes =3D=3D frame_size - 4, > + "packet pass assert error, expected %d RX bytes, > actual %d" % (frame_size - 4, p1rx_bytes)) > + > + self.verify(p0tx_bytes =3D=3D frame_size - 4, > + "packet pass assert error, expected %d TX bytes, > actual %d" % (frame_size - 4, p0tx_bytes)) >=20 > return out >=20 > -- > 1.7.4.4