From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 09284A034C; Tue, 30 Aug 2022 04:22:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9929E40F18; Tue, 30 Aug 2022 04:22:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 48DE840F17 for ; Tue, 30 Aug 2022 04:22:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661826142; x=1693362142; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=E+xzawGmJa1XrEvTUWR1ryM+XdWF0KVt4VzQBnDXzLk=; b=C8ivQBaR8eeahVQkc68GRqPRVsCuslkY2xYdgOMKnxSjmG1Ho86oFDD/ 2ZGoZeT49D4aoYxSoScUnJ+B9ixcSp4glqNgk/hlb701JKvdNP78wH53V DySuoWMuIJp+mH+YYFKZF/UE3Fmj7Pqd3pGnOLaz6VjCo+IMHC/QUZsBk 6Yj9FJBpSRxao6PoII3Jso5HsYn2vFnndEbVaGdDipbWMA+t3z03LVOyl ZYRalZsUwoH+twrKrqvaZQoounS5r5Yop8pxhNXAYaiCX55PDcH27/jCw BiJSl+F9RFm8chEKSdvxQgrkg4hTfg6oX8R0BPgoWOFviTzSSPBiwLBYT g==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="381354384" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="381354384" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 19:22:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="679856218" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga004.fm.intel.com with ESMTP; 29 Aug 2022 19:22:21 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 29 Aug 2022 19:22:20 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 29 Aug 2022 19:22:20 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 29 Aug 2022 19:22:20 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.43) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 29 Aug 2022 19:22:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c/FchSfDWbRw4HlhUNRrLN/h0E0ht8uw1qN79PenoWkhA32GEH6FDkUAiGfWDP5szPS33xyV/GJgvOyaVkw86qKb3Xg+7fI0+fcKxXwhvHPDVkkhO7zSWs4225khwfAy6eh2EeXpW2qqoT41fzGnknw2joI9IqI/LC5Y5OYhoivX9CAOHeeVI/xtpR7Kw24BaXAGzebNC+FD2fkm2mOmhKSCG2iPr8c6XBT8pqfDcWzPCiQ5Aio9ndFWxUiQ3Hdy8iAhWXpFbGWP0za1M6oQjKoWVMAG35xJHl8dUxc3w4+ABMBKQI1lk4bn64EHNUlXDASw59VohwZZ4tIfY+gN/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zpCMTTmeOTxNtSHeLZHd2H9hqHg2w4LvfijzW8bFTQM=; b=FtlHmJ6l+dPADc+CkgnANGr6FsEx0dDu9EqJEjmGYal8DOVvPk+Ed11esIciShA1aPcZ2D6uFkEiJjP+cVBtj3yzH0J1XqvF6ZJFg0R3Ah8ROmExGfHKJPBWMQ7MzNo+V8Jau7K7zPpzzqOxfMD+8iXOAQOPj8LVb0ri72lBi+l//7Dc5106JKfebRj2HxhReVOn0UsDZLxDZFyh4U6/MU5DHVrtWQYOoIriq11mhgY3YBzGRwM//9xDvP9c46BURkc8Uwh+9h1WCRHIOG1TpFwoGp8ZvViRpIHQ3vim5BSMHGgCS8PEurQAvUyQtZV/LV0BJ0rBzVOlYIRhs0oEHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB6056.namprd11.prod.outlook.com (2603:10b6:510:1d4::20) by BY5PR11MB4087.namprd11.prod.outlook.com (2603:10b6:a03:18f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Tue, 30 Aug 2022 02:22:18 +0000 Received: from PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::1822:806b:977e:158e]) by PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::1822:806b:977e:158e%5]) with mapi id 15.20.5566.021; Tue, 30 Aug 2022 02:22:17 +0000 From: "Xu, Ke1" To: "Zhang, Peng1X" CC: "Xing, Beilei" , "dev@dpdk.org" , "Wu, Jingjing" Subject: Re: [PATCH 1/2] net/iavf: enable TSO offloading for tunnel cases Thread-Topic: Re: [PATCH 1/2] net/iavf: enable TSO offloading for tunnel cases Thread-Index: Adi7xUyquiYyfoo4T82/xbly05Mgjg== Date: Tue, 30 Aug 2022 02:22:17 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b337ffd1-4ee1-4efe-383a-08da8a2e7604 x-ms-traffictypediagnostic: BY5PR11MB4087:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9/G5o13afCtur7SwneQ9PtHv1Fd4PlF9fon6ju4o8S7bDTTPByOb5Qj6uHcPMtnmABMEx+x33nuBkvCUvmaDBotEPRHm8QIgQ4buwrG3WX2HWfuVF+wBe/bgVTI+iZqJlppF7daw+j0diWbEKb2PCqupCABcs9gMJG2ou1f8MOPSv/EDRMQ3cmS/4TccoUKfHrnZGi8LyKSrns/N/Bw5h1q6noms7mlT4X39wV6LO0Xe/M42MRncW0IEYN92jHiCeNu1qX8onzAsLPnWvxJb0w8ZZOQfNGwAn/RRq0vI7CZin7za3uCRcs3bjdHf2YQliCpDe2mBdtc1K6OCVqWbRbVcWLH5iiqm/SSGQoxnPNSUgN3eCj6Cmt5bklmVprgqV+wZnAooD18PVmw+iUPWWt+ezj/JUQSEu/pMM9nQQEIRpMzc35K7F5wQYZQ9S1hmI7c3msnHfMbNolBU9od1qt7vitPNv3Fmrw9Pb+mEONc3pjoyDkO/2gi0+tjlQvyleSnWO5YqT8a6qmWY/gnX2q9XuNSVt31ra43hdTAiRRIQoEmQg9EEZ2DKWXlquZlJZoK8Ex1EVozPe9+QKURcG2Ewg1fzIf3bK2HqjaEnO8g40vb5WmielgpKxCBvwt1bnFUZi2stOcsUb2pjLb0+M1sp3WEceew8WepLpeyS3U7oiXwRxsou8Y2nRJQLi4tCfKKgOQHwf4ncHD5OpiGhf5OFu4uIgQ/F2iVOjC7fnUy63MOqkFDPXE70pnGH50jcMAVZ9kte6Afr5IjD2t/0Gg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6056.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(376002)(396003)(136003)(346002)(39860400002)(76116006)(478600001)(5660300002)(4744005)(41300700001)(66446008)(64756008)(66946007)(66476007)(4326008)(8676002)(6506007)(66556008)(7696005)(107886003)(8936002)(6862004)(52536014)(33656002)(86362001)(55016003)(122000001)(83380400001)(186003)(26005)(38070700005)(9686003)(2906002)(38100700002)(82960400001)(6636002)(54906003)(316002)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ZjqWfK+zD/6YnyaCGz4crLerHlgxwcxQjfZgeDKuHYe1HSt9M0+pRqobj5ZT?= =?us-ascii?Q?JcRqFBCp6cOlQFkikW9m7mZ2bERKwQ2sTK4oReHz+bMedmiQ7T1Cgy0JDsJ9?= =?us-ascii?Q?k/lVXMDUma8vy2/Pd551GRReWLw9xQV6TsNJFAMFBkx8wSUd0uqL+/z3KjIW?= =?us-ascii?Q?ARm774xUWo217QuGlksCR/D0oARu+R0/4CA9wA1USxsNRkwFMAGmFA6MUB5E?= =?us-ascii?Q?igqnKObsn8fpMqGT/A6y/Y1tbyk+YwzyimmdGEISqPRUbYm+O+RXv2joSkh3?= =?us-ascii?Q?WAuzkO8aMheQra8ioQHa0AbT6BxxvAHkeBwM2pew6IxZCRRBtLUxCMH9Lwec?= =?us-ascii?Q?bJOoPiKQu+sktx+jzNHCpMeFZ0SN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ascii?Q?KOzgZnXU2i5iL9EgclaF5ZHBGLlfKia/+oexoUjqKdguJLnzTvxz8FLEfphq?= =?us-ascii?Q?IWj//XN2pf1xN9JyFy+zXXzaTNc5rVfQqem6NA6WG8TBG1uhSNVQTKkkAdki?= =?us-ascii?Q?5zN/bIw6JewQrj0oQIcwOGL65ipiM2jn8+7YILb5M4XL9lNMxGy9d7/KTeEm?= =?us-ascii?Q?IMgUuqFJwOwEbSdTm/89SzjhcF+Mi1Jw/t/5nUimIhzR/n28rKO6TUyhe8KD?= =?us-ascii?Q?eRrywZ2xZQPwvkjXQY90h957QLrh8YmESiFXv1t6x7KXp7aJCHLEBMgPwPfT?= =?us-ascii?Q?l9r0WAaT1fvHISgg1B0=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB6056.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b337ffd1-4ee1-4efe-383a-08da8a2e7604 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2022 02:22:17.8994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UK/uMhVfC3zeGj1YcUXsrjN1dX2mgmlkxs9lJFPri3WG74BML5qOqip7KuBaLeSnrqX3m3wej+DmMZTqGuyUKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4087 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > Subject: [PATCH 1/2] net/iavf: enable TSO offloading for tunnel cases > Date: Sat, 13 Aug 2022 00:52:22 +0800 > Message-ID: <20220812165223.470777-1-peng1x.zhang@intel.com> (raw) > > From: Peng Zhang > > Hardware limits that max buffer size per Tx descriptor should be (16K-1)B= . > So when TSO enabled under unencrypt scenario, the mbuf data size may exce= ed > the limit and cause malicious behavior to the NIC. > > This patch supports Tx descriptors for this kind of large buffer. > > Signed-off-by: Peng Zhang Tested and passed. Regards, Tested-by: Ke Xu > --- > drivers/net/iavf/iavf_rxtx.c | 66 ++++++++++++++++++++++++++++++++---- > 1 file changed, 60 insertions(+), 6 deletions(-)