From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id D652137B7 for ; Mon, 21 Jan 2019 07:33:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2019 22:33:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,502,1539673200"; d="scan'208";a="111408642" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 20 Jan 2019 22:33:30 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 20 Jan 2019 22:33:30 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.196]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.85]) with mapi id 14.03.0415.000; Mon, 21 Jan 2019 14:33:28 +0800 From: "Tu, Lijuan" To: "Zhu, WenhuiX" , "dts@dpdk.org" CC: "Zhu, WenhuiX" Thread-Topic: [dts] [PATCH V1] ipfrag_ipfrag_fragment modify the max length of packet Thread-Index: AQHUrgqIXhrd6+4IN0eG42Tp/ewaQ6W5SlDA Date: Mon, 21 Jan 2019 06:33:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA0538F@SHSMSX101.ccr.corp.intel.com> References: <1547691537-6901-1-git-send-email-wenhuix.zhu@intel.com> In-Reply-To: <1547691537-6901-1-git-send-email-wenhuix.zhu@intel.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.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjExNWUzZGEtNTE4ZC00MzM3LWJkYjAtMjNkYzc2ZmNjMTRjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMHFETHJvemt0anVqWmdcL3VCMEh1ZHNYZEorZG4xRkNoRFNnN25KQ1pkanBkYVlCc0d6V1dta2k0em52eGxYTWQifQ== 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 V1] ipfrag_ipfrag_fragment modify the max length of packet 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: Mon, 21 Jan 2019 06:33:32 -0000 Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui > Sent: Thursday, January 17, 2019 10:19 AM > To: dts@dpdk.org > Cc: Zhu, WenhuiX > Subject: [dts] [PATCH V1] ipfrag_ipfrag_fragment modify the max length of > packet >=20 > Original each packet max len: 1452, > current code 7a838c8798a93f changed to aligned to 8 bytes, len is 1456 >=20 > Signed-off-by: zhuwenhui > --- > tests/TestSuite_ipfrag.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py index > 38e00d7..3a9ffb8 100644 > --- a/tests/TestSuite_ipfrag.py > +++ b/tests/TestSuite_ipfrag.py > @@ -200,9 +200,9 @@ l3fwd_ipv4_route_array[] =3D {\\\n" > for size in pkt_sizes[::burst]: > # simulate to set TG properties > if flag =3D=3D 'frag': > - # each packet max len: 1518 - 18 (eth) - 40 (ipv6) - 8 (= ipv6 ext hdr) =3D > 1452 > - expPkts =3D (size - HEADER_SIZE['eth'] - HEADER_SIZE['ip= v6']) / 1452 > - if (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) % 1= 452: > + # each packet max len: 1522 - 18 (eth) - 40 (ipv6) - 8 (= ipv6 ext hdr) =3D > 1456 > + expPkts =3D (size - HEADER_SIZE['eth'] - HEADER_SIZE['ip= v6']) / 1456 > + if (size - HEADER_SIZE['eth'] - HEADER_SIZE['ipv6']) % 1= 456: > expPkts +=3D 1 > val =3D 0 > else: > @@ -240,7 +240,7 @@ l3fwd_ipv4_route_array[] =3D {\\\n" >=20 > # fragment offset should be correct > frag =3D pkt.strip_element_layer4("offset") > - self.verify((frag =3D=3D int((idx - 1) * 181.5)), "F= ragment packet frag not > match") > + self.verify((frag =3D=3D int((idx - 1) * 182)), > + "Fragment packet frag not match") > idx +=3D 1 >=20 > def set_up(self): > -- > 2.17.2