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 BCB00A00C2; Mon, 26 Sep 2022 11:48:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8D824069B; Mon, 26 Sep 2022 11:48:56 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 2DD37400D7 for ; Mon, 26 Sep 2022 11:48:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664185735; x=1695721735; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=MJURxVOxoADB1P+UP99XWzChnaV/jqvBjBeps+OrBW8=; b=Liq8HSGx7oKrBrds4fQWWShjTjFah5MzlJZkJIWDyeJF8nUYL7QA2Cp+ DdAvtMWYoGmXiCMuQkbJPGZWJlGVWgEZdzy1qmBIC1ztVxsLqvrj1S3QE 83/FEEO7qNzQrtTKkIUMJPjgrfkP5IajcAyK58471Vg45OkEZtCrMq1kE gBARuCjfEPxNouwLBeQbu+JRZLjM4lr4UbyLS1S7bePOm4jThpjULsO0l P1rMU44nF8GMoBAwzAwH5dKzM8fUD32qsG8IeiODiP1zoLqADlHHFZrQX Spg68ICJNPIqexTjpQN/EXTbDcGqv8jS1BBuCT1tQc2lp3QWzh6X1NaCH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="281359472" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="281359472" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2022 02:48:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="654200356" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="654200356" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 26 Sep 2022 02:48:53 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 26 Sep 2022 02:48:53 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 26 Sep 2022 02:48:53 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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; Mon, 26 Sep 2022 02:48:53 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 26 Sep 2022 02:48:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCN7lpipGGGwdxKj/rVGUU1i4HWUpTL9J8+RJsXY7b7ZAapNt9PBePwlPaMDc0N2NKBHi5NkEuxm3CRUmHjcCnH3ELfBEFB0z1BA6jN3JSrse9kUjUxFck1v8lFJdJ6RBLgjSv62CUazOOrGlN7XrEch1EWD5wITWB9Ltfm7s6JGuKNHpwB4UKRtoUdjL0GMxDQLblfORLXlwiMSGF/7kHxK3N8fHGzkD3lTvfQBqGKsMZmyj/elx77QUzHqP9YftYJBKBZpbotn6pekPxeg6ucYZI2wM4+kX204DBkdyRjG7I8Z9FyWbdDVQ4QiWdF25i1z25dXPryJZq5DYLpJhg== 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=QwoA3+qj6/yBudgdvqldHQYeM4n877eLG9GfLhm6tQc=; b=LHAepcbXbPZVY2EHApA41SmV3GTPN2Obml5ahjBJphCs8Z7k3Ctyh3FqaIb+z1AoZD3jda0tO9H1dWQXI0h3eTc/H8v/Q5rrpu3XG4ygUmtwwMneiW03C8pScrszHxc2kfdG9ZwDV4oAP5U0gjFFmGj1Yros+nvT4wsZLqc/P5BtzmkSWAifY7NvBK3kD3t4+Zlg7mN8SuzuinJ9noVr2LgRshA6FSRuvVpTKVJvNXmnpmejrfScAM4XHaZRYsNO2GnB4nf9M0YT084Kmhmo7XCRGhsc8HA/3r6r6uLrU4m1BZHmmUQ2dj7ozd/2O4MJEtjjTEUXlozAS4lA0abXQg== 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 SA0PR11MB4688.namprd11.prod.outlook.com (2603:10b6:806:72::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 09:48:50 +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.5654.025; Mon, 26 Sep 2022 09:48:50 +0000 From: "Xu, Ke1" To: "Zeng, ZhichaoX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Zhou, YidingX" , "Zhang, Qi Z" , "Zeng, ZhichaoX" , "Wu, Jingjing" , "Xing, Beilei" , "Sinha, Abhijit" , "Doherty, Declan" , "Nicolau, Radu" Subject: RE: [PATCH v2] net/iavf: fix TSO offload for tunnel case Thread-Topic: [PATCH v2] net/iavf: fix TSO offload for tunnel case Thread-Index: AQHY0WccgtY2z+2y9kO9cjdG2jxCf63xdzFg Date: Mon, 26 Sep 2022 09:48:50 +0000 Message-ID: References: <20220812165223.470777-1-peng1x.zhang@intel.com> <20220926051725.261950-1-zhichaox.zeng@intel.com> In-Reply-To: <20220926051725.261950-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_|SA0PR11MB4688:EE_ x-ms-office365-filtering-correlation-id: adf2315d-b409-44ed-4979-08da9fa450b7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KJB6lg+oL011HXyISbyVH1gGpvXmfX8s+pNhaNc0euXcHcglgVe+5tP/icGdP4tMbfKex+witzZonSrrExIJ3wVHz01BeZX6FCNjITneLHymRCSce4OoqnO/STXSSek3/3w8Cc/1TL9MBcY6fW4rgFCLyKJzFEX3FTrRSd9IXuTwuGG06FEVts7SLCXYowxcX5BK9YFcBvqdRaBF4JuG8nJwatAqIQGe/rIXzykeqfEwRLVEik2fSs/UTLp0X4TQvF4W3EUTg3sddBvs+K8FKyQX/zqB0a5SrKwBK40QLuqxjYrkCD12HWkfjhSshiik9gyfzTaoCIvMgD8K4mblziJM0w1VxVVdudvKLZ9IlzhUvK1hpsHm8ceLjrre6LvsX5B7naRcjbf76m/tuklSG5ICkFydlmHEIBzT4p2oHBDT2azwdAmLQ7PsnjPbePKlA2To03c69Ri/BduoV6WCYrMVZMl3mlzwc/RSVSKcp56gjYkp+zzPKYelLJYm71SYyqqQVqgird2wLU7xQTABQFh3upgwGomblTtLwUAs/gAATzR+UO0zKptytyYPv+yARyAKOm8m661xk9WdBTTYdb/7s7WDEsn0RiNwPbJBF94+6EBG13oj+6CEpg0H1UX0nf55L081XDmC7869PusPuzyi/PUbL9AZjD5br4SuLTPROA5QGtONRKBipfA3AoU0RUmn4G8Lz5lp9q3p+0Ljmlq9owJjcKRWHrDu6qufW3p+DmB+ToZd5VqN+lU2Ey1bp/FPJmdb06rUxlaKYWaaSA== 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)(39860400002)(136003)(376002)(396003)(366004)(346002)(451199015)(4744005)(9686003)(53546011)(26005)(5660300002)(33656002)(2906002)(38070700005)(66946007)(76116006)(64756008)(66476007)(66446008)(66556008)(4326008)(8676002)(8936002)(52536014)(7696005)(6506007)(107886003)(41300700001)(122000001)(38100700002)(86362001)(55016003)(186003)(82960400001)(316002)(71200400001)(54906003)(110136005)(478600001)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fqa1KYiSy7tTTAKZN23f425rW1gxNZdEwxtfL/fFQWpxLK8vua7xSGcfV8uv?= =?us-ascii?Q?H5aoLZE1+k1hSpba96FNYDXQgre+lmsmrev+WHjwtE6NL8kWgjor32TwI+ZA?= =?us-ascii?Q?tfMkIwKGViW92RDhfVcn9VZNJXI2D+G6WRu87C3bX9VeSslY4PkKtYmDu71q?= =?us-ascii?Q?Cd6kct7YGe16eg/WiiQqDMwsCiQAwapsZ6mIlJOT9dFlx2YM7EwPVRe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KqtjORjIHasEYH3nmdZ/I40hA2KL09f6N+8JVhS0qPz3Vxp7?= =?us-ascii?Q?UCrrNKqeiqT8k9YvRrsEHbv1wUqcI26rAsytxChRnjOpyRpXez15qKnavon9?= =?us-ascii?Q?LcMgmf9aVhXqYxg664vyKT2xSRO7mQlKzA6zGJ1KTs+/EorZA8iR5Tu6Ub5J?= =?us-ascii?Q?MArAONpb7aTOgO8PQXJ0/kjzvUV7N3tX7x2gsLIA/mKzRnC0lA75BLSB3IfI?= =?us-ascii?Q?0m2alR1yR/sS1vdJot3x5CFCqMtJpmEEP6hVq4YDaJ+a7FTPxzvNOb5hrvRg?= =?us-ascii?Q?9Bi7bPaSmpAfXLLhx7wlsNv3AGVIOavtfGi22n+/mRm7hwzxHYWUh5taFy9o?= =?us-ascii?Q?UOvZnf3DgEaVhJtutsr9AHdW/NPRe6tENc2ozx4IQcR4bLlzQLrVf2Ijbnn9?= =?us-ascii?Q?Kz48MSjSCA0pLk87MK92uphAEGghIUrIojUklPTGi97Efl9NInv6E4tl0sBh?= =?us-ascii?Q?yEdO4ZmsbZgrjnbm11o=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: adf2315d-b409-44ed-4979-08da9fa450b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2022 09:48:50.3519 (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: twsVA0fGxHaghF/B9QdU6uwo4eonNAcV5qPWFPONQAzW7Cfq6Aaz6wvy/RD6JazVLffMDGseI3BhpqIrOGcG1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4688 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: Monday, September 26, 2022 1:17 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Zhang, Qi Z ; Zeng, > ZhichaoX ; Wu, Jingjing ; > Xing, Beilei ; Sinha, Abhijit ; > Doherty, Declan ; Nicolau, Radu > > Subject: [PATCH v2] 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 handli= ng 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 > --- > v2: rework patch >=20 > Signed-off-by: Zhichao Zeng Tested and passed. Tested-bu: Ke Xu > --- > drivers/common/iavf/iavf_osdep.h | 2 + > drivers/net/iavf/iavf_rxtx.c | 95 +++++++++++++++++++------------- > 2 files changed, 59 insertions(+), 38 deletions(-)