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 C536AA034C; Fri, 30 Sep 2022 05:46:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F2F740FAE; Fri, 30 Sep 2022 05:46:46 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 95F2640E5A for ; Fri, 30 Sep 2022 05:46:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664509604; x=1696045604; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GZgeMO7JyAhqJZ8230BytZm0ppsJs7xKBfjSP9EEuFE=; b=IyNnU6Or4/uziWuFXKBblgkIQ6b7bFqgRhy2qZm/KpDhuxFUycdvRU5O HqGAkxLAmT5hgxMJcTyE0eoQU2oEMfz8EwKxEdoz/LGTfnjLShCHGZ6vd thtEADuQ+jGGxyewgHF+O6Erjy3g8K2TTqQigOIJPUA2I7frWwQviXcDA Wz/fLb4X6DVgsuIImVBvcAamq+9jYzWPuNlpoK0hx2Wb90p4T7HtL4d51 6DLevL0CaUVvmqzk4RgYbYIWquLZserCzOP4vSzvuUgnZllWOH2OIu2Ql nieHiZNYc0hbd6G97JRdzNBQFdbrYeonv3DgH6OZ37BXLfsv8+gxPbJE2 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="289257262" X-IronPort-AV: E=Sophos;i="5.93,357,1654585200"; d="scan'208";a="289257262" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 20:46:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="711648733" X-IronPort-AV: E=Sophos;i="5.93,357,1654585200"; d="scan'208";a="711648733" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2022 20:46:42 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 29 Sep 2022 20:46:42 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 29 Sep 2022 20:46:42 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.43) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 29 Sep 2022 20:46:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kx3+DH1GpkkGqJUvIjBlONu2q9NlmrffGYkAHFI2R/FKDiW/pcS0phZR8iISS61Ze6e1YH83KPo3OgENJVwzA7YIW226cR8JkqZMgcTINfmgBuiFR2cYOW2vuJx8BDt274l1QB8LMOFQLtfOTSIMQczOZBNb/JWsDY8E9VgjFZrSxrFW8AkDG7YkvdP2j5IJtZ4xIMbXMsmkmERnoR3hJNgSfBx1g95TWGKG1O+muFerUbvD1m5YZH+DXFdc5xQYWM0tkXerBgk12VYDKBj9WXNpuRTAk6jvHg8JLiiJCS6Au5+jL7E1ct/BZNAzR0Wcxo1yLSmlMG7BprXaHBK+Mw== 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=Yq9Efd7ixaWBbouZvap5sWGt6IcpzQpCgiBSuXT0Mmc=; b=ofm99Co5TBNejDO6diuwwfH6nMfKvFFKvb4hqkcpgG36oD0d/Z+m/REg4ZQix3LDaR258FRjPIz2zP7lrb/+Jf9gsIaI6VXR9YS31X2Zwslu0qe+sPzF89BZa8qMfhI5Uu0TV1XqiS9A3qAHw+l9i3H1LbJYbsv/ve5mj/NMvjiAH6N5CB1MAujRWbD0Ach5QP4yeMV7fgWuNHZ98pA+N5MJM0zM+PfFHrKJ+e1tuRavcFT+8IuWox9MHHXWWUwmQ+uxFMJyRXmjHWpMRvubZ06eeH8hSnSojHa+ZfUtyv5hJ8miJ4PlQGrIowOnIRczsCUwAITA4yC1V36dsYPgHA== 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 PH8PR11MB6729.namprd11.prod.outlook.com (2603:10b6:510:1c5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24; Fri, 30 Sep 2022 03:46:40 +0000 Received: from PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::7508:c5b7:79df:bd21]) by PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::7508:c5b7:79df:bd21%7]) with mapi id 15.20.5676.020; Fri, 30 Sep 2022 03:46:40 +0000 From: "Xu, Ke1" To: "Zeng, ZhichaoX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Zhou, YidingX" , "Zhang, Qi Z" , "Zeng, ZhichaoX" , "Wu, Jingjing" , "Xing, Beilei" , "Nicolau, Radu" , "Sinha, Abhijit" , "Doherty, Declan" Subject: RE: [PATCH v4] net/iavf: fix TSO offload for tunnel case Thread-Topic: [PATCH v4] net/iavf: fix TSO offload for tunnel case Thread-Index: AQHY08P8a0TJ0JcYAEu6eLitgmNTKa33Vpkw Date: Fri, 30 Sep 2022 03:46:40 +0000 Message-ID: References: <20220927095634.448796-1-zhichaox.zeng@intel.com> <20220929052702.668519-1-zhichaox.zeng@intel.com> In-Reply-To: <20220929052702.668519-1-zhichaox.zeng@intel.com> 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-traffictypediagnostic: PH7PR11MB6056:EE_|PH8PR11MB6729:EE_ x-ms-office365-filtering-correlation-id: f167ec18-6a12-4ada-f1cd-08daa2966263 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Kp0hu2xdZxJUv9o+dta2gcqZi+IXNgPihkZprr1Vk0j6E+y1Sohw8+DiB0B7BLZL9wpx1DQgKRTaaxrlRI7UmmakDkR/gs/M3bz+P/msxz5W+ahbgA3Di11wA9QXjw6vkvEZNIj2nuThcsyVXOR3dkfnBSXTty9no+aPShpZMDSuLEDjmGA1ilQQevC61i+q24G1xXSnSK9gDLzdNx6N2DrQtI1GGs7v95HHTqWm2L4tQc63EtieiME9JvU8qFYL11egHOeLWIWPnsQHIkpxc4bYucQjXh3JEvj5Xw3A/xoau4gsytOzxVvDQru6Kqd2ADgQKgPsVanaVzT2A7sgLkrkCHkdaLVdkCpajh4k/v+M0jvrSY584fWHsHaz0qt2vU/9hJQ/fUt8jImGonikc8dK87viSul1TXU4oxLhC9LLIS9j4I0/ASB3/Vb/BkUgKUBBwVrDOeNT2121fDc1Wjx3ACrzS/+/HgmSsMQG8qBHrCzUM4mHvDtbRs/cUqGSUhaL9oPheoXET/k6V6N79/oOz2DL45mrv11mxOEaF3zfoVAnnhVOYgLUG4S/lkqg54kim9cD+BhO5fxxY0gfo/xEwCcjs+olIiWW+fECrPLka2qC6vCg6rCjo6QSSexG15qaGreIldn/Ky6B4VaOOdnwO/iRH939qqUwHHG8iKAe5aJ6v47pcwtBjGIUJNQy5kuO5fxs/Oarm8llo1YCyEOFHHsCxxrurn3xthZaUKJaWvse8HjuhMEDDxiOMcolVpRO6lEs1syaN2D0OFcAMg== 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:(13230022)(376002)(136003)(396003)(366004)(346002)(39860400002)(451199015)(7696005)(55016003)(33656002)(478600001)(186003)(83380400001)(38100700002)(122000001)(5660300002)(316002)(86362001)(38070700005)(82960400001)(71200400001)(2906002)(9686003)(8936002)(107886003)(6506007)(53546011)(52536014)(66946007)(8676002)(66476007)(66446008)(110136005)(41300700001)(76116006)(4326008)(54906003)(64756008)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ojXqTzE7P/6ipSCSgmsxkca8ZsYLqoIuSRtWn4u2tCRYR2WCkxC/Yrd68qNA?= =?us-ascii?Q?+WVLiS04Z6wKwxF9DBZh0vQJY82z4vMssj5ZxvHojHPdv84QI9RL1CNO4LYp?= =?us-ascii?Q?o5cFkDMu4rYe802SZxHxA8HQkpKjXi5a3zLN9/eoN1eU4k6CKW4q3drvyo7b?= =?us-ascii?Q?LN/e2BXNooeiuRmAuuWRDk1c9SX9wZIlwzJt2d+FGIGOl7aTpCMp/P3+/IEY?= =?us-ascii?Q?BC0cGvvxlud8m8DRmZdEkwX0LIyAfrxXbuzeqg1IcKc7qn5jq7nK8OXrzCK8?= =?us-ascii?Q?IhI5YcHAWWeQ9qC34Hzyq5+L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?us-ascii?Q?TLNSpuOub+MfJAxruBqHPfh70XniTpixAywUqMMaWoPOp0BP5AW9G4myhK5O?= =?us-ascii?Q?/yxuZhd6QW++KDauvwYvbkToRvcd49NoS7FkDpzRaxpCDiZpiyEOr68mAT3M?= =?us-ascii?Q?OFte3pNbBmMvom6TJRYxsgeuYoC2cllp+TdDugsirjM3ghL1YCkJG+v3K6/I?= =?us-ascii?Q?dVb7dtioL8ranTURo+/m573nrEnaj35lVPvs/XJQufXs+Pf/EXOQs2bRIRKA?= =?us-ascii?Q?tahZltN5+l8/nkyJv8nDu+2NLYQ9QB6EVVdGDrZ6T1yedb91yqpVkJYn4dJI?= =?us-ascii?Q?J3iAd6rM5W72+4ijgeUWylbAk9OmSiUfjM0+5mKLSYhnMt2tORpZ6peuvysX?= =?us-ascii?Q?PGEZ6mioJJnGX4wThcU5sG9QOWMzCmEg+Qkzpbjqdq5UymWyslIsma85zK9U?= =?us-ascii?Q?DdlZWhXTRQgNnhQA17Ewbrg=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: f167ec18-6a12-4ada-f1cd-08daa2966263 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2022 03:46:40.5701 (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: NeJR9PFCkGDuOHu+N0NKpHAn14lFznezuv9vn2xZ1Sizq++5eE2gqfOD5jO/dTgmQqdKDsB/yCoaVxnkhZicmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6729 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 > -----Original Message----- > From: Zhichao Zeng > Sent: Thursday, September 29, 2022 1:27 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Zhang, Qi Z ; Zeng, > ZhichaoX ; Wu, Jingjing ; > Xing, Beilei ; Nicolau, Radu > ; Sinha, Abhijit ; Doher= ty, > Declan > Subject: [PATCH v4] net/iavf: fix TSO offload for tunnel case >=20 > This patch is to fix the tunnel TSO not enabling issue, simplify the logi= c of > calculating 'Tx Buffer Size' of data descriptor with IPSec, and fix handl= ing that > the mbuf size exceeds the TX descriptor hardware limit(1B-16KB) which > causes malicious behavior to the NIC. >=20 > Fixes: 1e728b01120c ("net/iavf: rework Tx path") >=20 > Signed-off-by: Zhichao Zeng Tested and passed. Tested-by: Ke Xu > --- > v4: fix the IPsec TSO issue > --- > v3: move macros to iavf header file > --- > v2: rework patch > --- > drivers/net/iavf/iavf_rxtx.c | 99 ++++++++++++++++++++++-------------- > drivers/net/iavf/iavf_rxtx.h | 4 ++ > 2 files changed, 65 insertions(+), 38 deletions(-) > -- > 2.25.1