From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CF89BA0BE; Wed, 2 Aug 2017 12:54:06 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2017 03:54:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,311,1498546800"; d="scan'208";a="134388322" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by fmsmga005.fm.intel.com with ESMTP; 02 Aug 2017 03:54:04 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.168]) by IRSMSX108.ger.corp.intel.com ([169.254.11.133]) with mapi id 14.03.0319.002; Wed, 2 Aug 2017 11:54:03 +0100 From: "Kavanagh, Mark B" To: "Zhang, Qi Z" , "Wu, Jingjing" CC: "dev@dpdk.org" , "Zhang, Qi Z" , "stable@dpdk.org" , "Tan, Jianfeng" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: fix data segment buffer length Thread-Index: AQHTCx6VWNYHuYLUwE6Vz2B2POIq4KJw4+/g Date: Wed, 2 Aug 2017 10:54:03 +0000 Message-ID: References: <20170802072209.15233-1-qi.z.zhang@intel.com> In-Reply-To: <20170802072209.15233-1-qi.z.zhang@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjhhNGM4MTctMDkyNy00OWZhLTgyMzUtMGMzNjEyOTZlYTNlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InY0TGdQQUoxeDZGSXlOcVVCcjZ0SUszTjhsZnAzdlJPaWJvSUErUjlHZzg9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix data segment buffer length X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2017 10:54:07 -0000 >From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Qi Zhang >Sent: Wednesday, August 2, 2017 8:22 AM >To: Wu, Jingjing >Cc: dev@dpdk.org; jianfeng.tang@intel.com; Zhang, Qi Z ; >stable@dpdk.org; Tan, Jianfeng >Subject: [dpdk-dev] [PATCH] net/i40e: fix data segment buffer length > >Buffer length be configured for each data segment should not exceed >the requested value, or device may fill data that exceed the boundary >of memory that be reserved. > >Fixes: 4861cde46116 ("i40e: new poll mode driver") >Cc: stable@dpdk.org > >Signed-off-by: Jianfeng Tan >Signed-off-by: Qi Zhang Thanks guys, this resolved an issue that I'd encountered (as discussed off-= list). Reviewed-by: Mark Kavanagh Tested-by: Mark Kavanagh >--- > drivers/net/i40e/i40e_rxtx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c >index ae64de6..d42c23c 100644 >--- a/drivers/net/i40e/i40e_rxtx.c >+++ b/drivers/net/i40e/i40e_rxtx.c >@@ -2474,7 +2474,7 @@ i40e_rx_queue_config(struct i40e_rx_queue *rxq) > case I40E_FLAG_HEADER_SPLIT_DISABLED: > default: > rxq->rx_hdr_len =3D 0; >- rxq->rx_buf_len =3D RTE_ALIGN(buf_size, >+ rxq->rx_buf_len =3D RTE_ALIGN_FLOOR(buf_size, > (1 << I40E_RXQ_CTX_DBUFF_SHIFT)); > rxq->hs_mode =3D i40e_header_split_none; > break; >-- >2.9.4