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 C74BDA04FE; Fri, 27 Dec 2019 01:27:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A359E1BFCF; Fri, 27 Dec 2019 01:27:40 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F1CEC1BFC9; Fri, 27 Dec 2019 01:27:38 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2019 16:27:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,360,1571727600"; d="scan'208";a="419583819" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 26 Dec 2019 16:27:38 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Dec 2019 16:27:37 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.72]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.214]) with mapi id 14.03.0439.000; Fri, 27 Dec 2019 08:27:35 +0800 From: "Zhang, Qi Z" To: "Li, Xiaoyun" , "Xing, Beilei" , "Yang, Qiming" , "Lu, Wenzhuo" , "Loftus, Ciara" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH v2] net/ice: fix TSO pkt exceeds allowed buf size issue Thread-Index: AQHVu7mezCpqhxmtykSvi1yhr91jNqfNIUxg Date: Fri, 27 Dec 2019 00:27:35 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153DF3BE8@SHSMSX105.ccr.corp.intel.com> References: <20191226064321.48237-1-xiaoyun.li@intel.com> <20191226065428.64870-1-xiaoyun.li@intel.com> In-Reply-To: <20191226065428.64870-1-xiaoyun.li@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGJiMTBhY2UtYzdiOC00OWViLWI2ZTgtYTZlODMyZjM3YmU3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidEo3NDdadkd1K0wzekp0Y0U1a09leWRQZ1gyaTFiQ1JGWjMxU3lqSXRiODRnYjlJNDVqeUxDS3pCOFBKaGkyciJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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: [dpdk-dev] [PATCH v2] net/ice: fix TSO pkt exceeds allowed buf size issue 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Li, Xiaoyun > Sent: Thursday, December 26, 2019 2:54 PM > To: Zhang, Qi Z ; Xing, Beilei ; > Yang, Qiming ; Lu, Wenzhuo > ; Loftus, Ciara ; > dev@dpdk.org > Cc: Li, Xiaoyun ; stable@dpdk.org > Subject: [PATCH v2] net/ice: fix TSO pkt exceeds allowed buf size issue >=20 > Hardware limits that max buffer size per tx descriptor should be (16K-1)B= . So > when TSO enabled, the mbuf data size may exceed the limit and cause > malicious behavior to the NIC. This patch fixes this issue by using more = tx descs > for this kind of large buffer. >=20 > Fixes: 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx") > Cc: stable@dpdk.org >=20 > Signed-off-by: Xiaoyun Li Acked-by: Qi Zhang