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 666DDA0487 for ; Wed, 3 Jul 2019 11:23:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5CA48559A; Wed, 3 Jul 2019 11:23:27 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 5D6382BB5 for ; Wed, 3 Jul 2019 11:23:25 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 02:23:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="169069082" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga006.jf.intel.com with ESMTP; 03 Jul 2019 02:23:24 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 02:23:23 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 02:23:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 17:23:21 +0800 From: "Tu, Lijuan" To: Yash Sharma , "dts@dpdk.org" , "shshaikh@marvell.com" CC: "psurana@marvell.com" , "srane@marvell.com" Thread-Topic: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters. Thread-Index: AQHVLLSvs1E06bkp40qp567yiapfp6a4qG3A Date: Wed, 3 Jul 2019 09:23:20 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BADA7AB@SHSMSX101.ccr.corp.intel.com> References: <20190627065024.30365-1-ysharma@marvell.com> In-Reply-To: <20190627065024.30365-1-ysharma@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmM4YjBiMmUtMGVmNi00Zjg5LThmYTktNzZmOTQ0ZTNmYmIyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieXRqTEZjWkhcL3NsbUV6R29lSUw0amxacGxsRGR2c2Z2MVdLa2NlSE5lQmVEY3RUNFI4XC9hREErQm1OSHBiMHRzIn0= 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 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters. 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 Yash Sharma > Sent: Thursday, June 27, 2019 2:50 PM > To: dts@dpdk.org; shshaikh@marvell.com > Cc: psurana@marvell.com; srane@marvell.com; yash > > Subject: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so n= o > need of adding extra 4 bytes for fastlinq Adapters. >=20 > From: yash >=20 > Signed-off-by: yash > --- > tests/TestSuite_jumboframes.py | 16 +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_jumboframes.py > b/tests/TestSuite_jumboframes.py index cf4335a..1b5aab5 100644 > --- a/tests/TestSuite_jumboframes.py > +++ b/tests/TestSuite_jumboframes.py > @@ -93,12 +93,18 @@ class TestJumboframes(TestCase): > rx_err -=3D rx_err_ori >=20 > if received: > - self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) > - and ( self.pmdout.check_tx_bytes(tx_bytes + 4, = pktsize )) > - and ((rx_bytes + 4) =3D=3D pktsize), > - "packet pass assert error") > + if self.nic.startswith('fastlinq'): > + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) > + and ( self.pmdout.check_tx_bytes(tx_bytes, pk= tsize )) > + and (rx_bytes =3D=3D pktsize), > + "packet pass assert error") > + else: > + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) > + and ( self.pmdout.check_tx_bytes(tx_bytes + 4= , pktsize )) > + and ((rx_bytes + 4) =3D=3D pktsize), > + "packet pass assert error") > else: > - self.verify(rx_err =3D=3D 1 or tx_pkts =3D=3D 0, "packet dro= p assert error") > + self.verify(rx_err =3D=3D 1 or tx_pkts =3D=3D 0, "packet d= rop > + assert error") > return out >=20 > # > -- > 1.8.3.1