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 7A6358D85 for ; Fri, 27 Nov 2015 09:10:16 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 27 Nov 2015 00:10:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,351,1444719600"; d="scan'208";a="607901116" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 27 Nov 2015 00:10:15 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 27 Nov 2015 00:10:13 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 27 Nov 2015 00:10:14 -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:10:11 +0800 From: "Liu, Yong" To: "Gu, YongjieX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] change the verification of pktbytes in jumboframes cases Thread-Index: AQHRKONHUioLE0uJ1EmjCLUIv3AgM56vhD6g Date: Fri, 27 Nov 2015 08:10:10 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F70462@SHSMSX103.ccr.corp.intel.com> References: <1448608174-27198-1-git-send-email-yongjiex.gu@intel.com> <1448608174-27198-2-git-send-email-yongjiex.gu@intel.com> In-Reply-To: <1448608174-27198-2-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsIiwiaWQiOiIwZWI3NDJmOC05OWM0LTRlM2UtYjMwNS00OWE4ZTYxZDM0MTciLCJwcm9wcyI6W3sibiI6IkludGVsRGF0YUNsYXNzaWZpY2F0aW9uIiwidmFscyI6W3sidmFsdWUiOiJDVFBfSUMifV19XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTUuNC4xMC4xOSIsIlRydXN0ZWRMYWJlbEhhc2giOiJFMGFWN1FMaGxmd0FvY1VzZWg2RkJnZE5tOGNkdTZ3Z2lPXC9US1dDNWNrUT0ifQ== 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 jumboframes 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:10:16 -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 jumboframes > 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_jumboframes.py | 8 ++------ > 1 files changed, 2 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_jumboframes.py > b/tests/TestSuite_jumboframes.py > index a295624..1cceba8 100644 > --- a/tests/TestSuite_jumboframes.py > +++ b/tests/TestSuite_jumboframes.py > @@ -93,12 +93,8 @@ class TestJumboframes(TestCase): > p1rx_err -=3D gp1rx_err >=20 > if received: > - if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single"]: > - self.verify((p0tx_pkts =3D=3D p1rx_pkts) and ((p0tx_byte= s + 4) > =3D=3D pktsize) and (p1rx_bytes =3D=3D pktsize), > - "packet pass assert error") > - else: > - self.verify((p0tx_pkts =3D=3D p1rx_pkts) and (p0tx_bytes= =3D=3D > pktsize) and (p1rx_bytes =3D=3D pktsize), > - "packet pass assert error") > + self.verify((p0tx_pkts =3D=3D p1rx_pkts) and ((p0tx_bytes + = 4) =3D=3D > pktsize) and ((p1rx_bytes + 4) =3D=3D pktsize), > + "packet pass assert error") > else: > #self.verify(p0tx_pkts =3D=3D p1rx_pkts and (p1rx_err =3D=3D= 1 or > p1rx_pkts =3D=3D 0), > self.verify(p1rx_err =3D=3D 1 or p0tx_pkts =3D=3D 0, "packet= drop > assert error") > -- > 1.7.4.4