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 0E265A04FE; Fri, 27 Dec 2019 01:26:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 880CB1BFC9; Fri, 27 Dec 2019 01:26:54 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 4E63D1BFC7; Fri, 27 Dec 2019 01:26:53 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2019 16:26:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,360,1571727600"; d="scan'208";a="419583741" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 26 Dec 2019 16:26:52 -0800 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) 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:26:52 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 26 Dec 2019 16:26:51 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.72]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.236]) with mapi id 14.03.0439.000; Fri, 27 Dec 2019 08:26:50 +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] net/ice: fix TSO pkt exceeds allowed buf size issue Thread-Index: AQHVu7gX4ZhpHcWN9E2foMbBZTHgE6fNIRdQ Date: Fri, 27 Dec 2019 00:26:49 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153DF3BD9@SHSMSX105.ccr.corp.intel.com> References: <20191226064321.48237-1-xiaoyun.li@intel.com> In-Reply-To: <20191226064321.48237-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjBjYzJlOWQtYWY0NS00Y2EzLWIzZjgtOWZhZWU0YTU3ODU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYnVFdStOaHlFb1BiMXh4SUp6WFwvS2REREJSKzlEbm5jQkl3bm5kXC9GUENSdVBGdlM5SlZMaU40TXFLNExpN252In0= 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] 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:43 PM > To: Zhang, Qi Z ; Xing, Beilei ; > Yang, Qiming ; Lu, Wenzhuo > ; Loftus, Ciara ; > dev@dpdk.org > Cc: Li, Xiaoyun ; stable@dpdk.org > Subject: [PATCH] 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