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 00F61A00C3; Wed, 21 Sep 2022 15:34:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E88004067C; Wed, 21 Sep 2022 15:34:00 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 0B1DE4014F for ; Wed, 21 Sep 2022 15:33:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663767239; x=1695303239; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GpSWN0h8K06Px13aWuW7KCmFKq1V1GNZFhlCkVPQcFM=; b=TI7JOpWhUY4o9QjP5hS7grgqGDKoRTuTX1zJBZHPnTxGk9A9Wg7bSIpg HH9qUmXoj/MNZO0XSiAd1/rE0Nx1gHMgWYD2wX4vwb2tEawYPGZ07MYD1 cfuu5x2e5BSkH+PphHD0eMkr/NFXauhF8ylA5M+UUAmsDN1GKDLnbqNf9 orDQRvWYze6NRPQKohkrrWqj23fJIagfeRijTURNszZTlg+F9FX2WxmmE ve8rSaQGkl/QiLFD3IWPXTGBh29eNa+IbI7YQEaV6pYaoFxT7Bfo8ULYU MGeGiyUohJleS99F38paIsvuJcK9uc1JAAhiSIKb6k24SD/p9n58BtcQl w==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="287073660" X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="287073660" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 06:33:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="864419218" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 21 Sep 2022 06:33:57 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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; Wed, 21 Sep 2022 06:33:57 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 06:33:57 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 06:33:57 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 06:33:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YGbhjs5Kp3wcnnpnIQqKNGaSiO+iQzNEErEqR3z0EX94Ai0RrYBFnbhiQ8mEfcCw3G1q5ZA7/wYPmDjdljoufvszVwL7RdeXPbCFExYX1S7hYko+jltQhjjEoJrfDBiblBKcJF2ViPQ7SBatw3wqme1gM6OaiKLYo796zjrLnfnZOmzpwDl223XF4TkzyBwIlFp8RCoeM1fat4x9hRO+K5t1MlvmMusOYBNLzvTvvxpLY4J8LA8FtYK8DpmCuja+4Ot1reUy9bw00mIOFWCcVlzGM0b0C1nMyDdyp65Zf3+4+LpmjM1PrnWHXahsGXwmfnHQDzTq3yw9nryzpwi0Eg== 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=GpSWN0h8K06Px13aWuW7KCmFKq1V1GNZFhlCkVPQcFM=; b=c2SEnkTQ7GZAyyPF9T8jQlplXsQMOo60ANKCrO9J4PO6PjQXURT2yvqyyCAz62nSNFVSNH6b1I2uqnKuFgNzReTfNNuyTGoCCtTjAlGH1sdda9CI8dN8pIZ80CZACPvViReNhU7Wo06q0trgvQmnHl2nusDm8f+Ndr7IpmxdbYyyu0i85nvPJMhx9BomEdEwN5nBdJEfVLI1WhB95ppvv1SbAI8EJlYyqEOz/uWhdQhARNDbVs46DWh1SlAQw/KcUG1PmXBBv9V3g8GangHS07GC6zRWXqhlg9FB83ORdoaHtCGxex3Rjjc8hQw09v4lAExebdm4dKomaWzZzTiqmg== 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 MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by PH8PR11MB6926.namprd11.prod.outlook.com (2603:10b6:510:226::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.19; Wed, 21 Sep 2022 13:33:55 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6ec2:a685:e63d:ab75]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6ec2:a685:e63d:ab75%7]) with mapi id 15.20.5632.019; Wed, 21 Sep 2022 13:33:55 +0000 From: "Zhang, Roy Fan" To: "Power, Ciara" , "De Lara Guarch, Pablo" , Akhil Goyal CC: "dev@dpdk.org" , "Ji, Kai" , "Mrozowicz, SlawomirX" Subject: RE: [PATCH v3 2/5] crypto/ipsec_mb: fix session creation for sessionless Thread-Topic: [PATCH v3 2/5] crypto/ipsec_mb: fix session creation for sessionless Thread-Index: AQHYzbjNPZJ/Il07iEeTX04ygcSR463p4f7A Date: Wed, 21 Sep 2022 13:33:55 +0000 Message-ID: References: <20220812132334.75707-1-ciara.power@intel.com> <20220921125036.9104-1-ciara.power@intel.com> <20220921125036.9104-3-ciara.power@intel.com> In-Reply-To: <20220921125036.9104-3-ciara.power@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows 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: MW5PR11MB5809:EE_|PH8PR11MB6926:EE_ x-ms-office365-filtering-correlation-id: 861f406b-fd03-4359-5dc5-08da9bd5ee16 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ILBSC/GM2S03XRx0zZeNEcdJsBQ+PjgKZMUq+eRP3QKBmbMTD5JU8JPD7rozIXfOWedw3r0P4axucgPjHYZCVDQa2n2bWLYAIyyO31BmtDGWl63TPXU98JQLviX3+YWOtqvf2MRfiMoPnbOOeklUqGQrZPKQFapo57Vh8EQ2KYiezQiPXmnPXlqifBz0HnwtMxz3H1ffJ5Hb11ZC4XIh+I9Bd7GaF5djeunnxYpv74cGYFd49E779V3u35qg6A//lPIxPq99F+efMD0B77OFhmK7g2YXDPMO0FWNibf4Ha+lTi98TFT3BSzsAypJi+52XyLYiT8kgwd1n3O/DoHRDoYZQAUTwsWAMlfJ29MX2m+gtp8EoZ/gFKekvDIiLgS7JTA0XRevWl07HeAe47Wv1jJkfgwhplqYyLKDULqj37H8bEd2mdN8+SoSD3q9ReSlkhq1MxNs87BD2r1mw1nyuTzi7LOtYyrOY27e0AWHXW53ZoYSUjYeeC+M6yIiQjbUmSBY0XGeLOrBCFzM7LEr5maU8PlsNjwpBYCYhGsuyRLfAJ2uhDNAXnpRQg6pMEnKu9p4KGQpoBGsExZVT4u55hP45+QjsE4ljvidZH2ItdGRMmAqEZxT1JHxqpsIzHWTqDyg3YcsILRuB0sSu7d19GH0JbE1ipvxmGLeLHC0bA6mJh0q0CpTsEI/pv6ZUcOio6sTPErWblK0x3kQK+ywXINYcnak3Waknto0zkqSJrS5vHr1GXdD10zl3NjvqVXJFuiBOBAp3eNhkKLRMRYBhA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(396003)(346002)(376002)(39860400002)(366004)(451199015)(66476007)(71200400001)(86362001)(6506007)(122000001)(66446008)(38100700002)(33656002)(8676002)(82960400001)(4326008)(5660300002)(2906002)(478600001)(66556008)(66946007)(52536014)(83380400001)(76116006)(110136005)(316002)(54906003)(8936002)(107886003)(186003)(64756008)(41300700001)(55016003)(38070700005)(7696005)(26005)(9686003)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?v/Gwjm3yddc+C0mi6dYeyv5A5p6Dc5KPwbEO+r4i/c+JtTSto17cxQFU?= =?Windows-1252?Q?T2dE+mtHZ6U8ndEDFlsV8ox7601ee89chIWHyFX2Hn3X9z2AydM3iB0s?= =?Windows-1252?Q?EWqUmNMAx+YvDp4r7u11YmC8kukcWn0qy2oPWXgBu+bxk7jNzEZiA+yU?= =?Windows-1252?Q?bnjvj9n4h0j8KGXortRvz5RjcL781QDTiXXO+y4sRTaX8sP0VQ1AYIQ2?= =?Windows-1252?Q?Ca4ewhLrgPyhQ+tL7ZOZ4HsgWn16JgUihTAt5X5qyI8uQZkcq16GEmAB?= =?Windows-1252?Q?lAtXVyrUI3NalHIYv5HrblwP5k9GIQBDtk378jB7xDREfjk2Ml74rD3h?= =?Windows-1252?Q?MQtG6IM4v6WBAsWx3ZPaMyInFN/aAR16gxlINfTopVH35ElHjgOFiNlw?= =?Windows-1252?Q?1t1TnP+HAOT62OCIFAgHlAAesHKqnQFX517FMRqvwNGJoOlekbDYhatz?= =?Windows-1252?Q?ivaBwe5npkmurVApnUdKBCW4ZEb6OBqwkVywpmbE+NW52RY8PjNockWk?= =?Windows-1252?Q?dpPqsjTTDXSUhuIS4hW9Tvp5iQkRkCha0u1n77FWpsaoOQKorucKY1+B?= =?Windows-1252?Q?cQp+MNh7JgkicBSG9sAwHADLzs0aq0101zi99mAf0lldQV311M+yGk4/?= =?Windows-1252?Q?3Ul58fS2slPLnKPPldjVHKIMgF5hYzAeT3ooP8yQT5mZFkvAecQKIogt?= =?Windows-1252?Q?lvR+9x7XvTtkU2L9cJ2zhBYcOwI8+le5C3jklJT/+3uSi3QByUgOXbou?= =?Windows-1252?Q?11itLpuPy0gct6L1X53kYN2i/1E86vDH3gZb93De90McBNZHNRquIC/+?= =?Windows-1252?Q?7iCjcWNocOwa0wKXBAQod2CAQM5Rhk/LgQAwqxqQOIX/gYaNJAiyCsFB?= =?Windows-1252?Q?FqRxQThPY7zrhm/2y9fCrE2Jofn20V4jUDvvUP/QLz7jmzfdBfULa3ng?= =?Windows-1252?Q?E4iES+lET09rdOpt1al2bWpxycDRm1vWNnBl2XroEJ7ZEIkkSjx4YDnq?= =?Windows-1252?Q?MjJsPa1Y6P3P3LHzxAKKLJLkshx9YsrViAFnwkH/8tr0UHaZMdRWmtCY?= =?Windows-1252?Q?xVmwjiXwJCZMEQiv4VlSVIzDt4i9juHzgHj0FXDai3ZaLHDcQxGkgpQJ?= =?Windows-1252?Q?Dp4WLzP98AlM+Ar2uihGDDaClWbtko/iolFtdd732ZX3R+ukosH9wtta?= =?Windows-1252?Q?GHhdyAnSZARaQ6E6RBQZnZnD/7C4g5xKIh3KEhe5CasCMwIoK5yJbedX?= =?Windows-1252?Q?/od5hUH5cWlssDy3nlFn5UDFgsHWxsXFpcossX7j5XtnbWkv22J/QX0s?= =?Windows-1252?Q?ij8vNWSIH9LZQpz8h18B1AWdIj96CGlz4ogMDKbeDo4Vyu6MYyD5/POk?= =?Windows-1252?Q?k+n6g64F//Uni379rTSUgOpgmymYo+g+I3NkTf9h+iD2jfNGN+IgVHHz?= =?Windows-1252?Q?BWG9991NIOhif3EqSTItDrWaCJ4ngihmM0OHmwmvF19JyRiv7H3N2oKg?= =?Windows-1252?Q?jVqUDy5Ro29i+yr8Vcpm6z4fqGJ1T0Ju1BeemvCE+kff9IBxmhM43nr0?= =?Windows-1252?Q?tg1+I32Fiu8TbOBDed9DIJy0jTuT4R4ds349r1N8bo08HKrbQXKdkv85?= =?Windows-1252?Q?guIQaoLOB/0Dt1MI/N7asenHMxZO0nXW3p7IgoeLcnnrIU59D/8CNrPp?= =?Windows-1252?Q?QA+ftBK7eRWz1CH61UGPyu2uUHFhr0By?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 861f406b-fd03-4359-5dc5-08da9bd5ee16 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 13:33:55.0660 (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: demtq0Ctj5Sg+lt7FTI/XJj4bblzb6kFDhyyd88oZ3d/EwX5Z3N+vrS0/TdFG6abXw5rKkN2Hkkf3mkHdLkxCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6926 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: Power, Ciara > Sent: Wednesday, September 21, 2022 1:51 PM > To: Zhang, Roy Fan ; De Lara Guarch, Pablo > ; Akhil Goyal > Cc: dev@dpdk.org; Ji, Kai ; Power, Ciara > ; Mrozowicz, SlawomirX > > Subject: [PATCH v3 2/5] crypto/ipsec_mb: fix session creation for session= less >=20 > Currently, for a sessionless op, the session taken from the mempool > contains some values previously set by a testcase that does use a > session. This is due to the session object not being reset before going > back into the mempool. >=20 > This caused issues when multiple sessionless testcases ran, as the > previously set objects were being used for the first few testcases, but > subsequent testcases used empty objects, as they were being correctly > reset by the sessionless testcases. >=20 > To fix this, the session objects are now reset before being returned to > the mempool for session testcases. In addition, rather than pulling the > session object directly from the mempool for sessionless testcases, the > session_create() function is now used, which sets the required values, > such as nb_drivers. >=20 > Fixes: c75542ae4200 ("crypto/ipsec_mb: introduce IPsec_mb framework") > Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") > Cc: roy.fan.zhang@intel.com > Cc: slawomirx.mrozowicz@intel.com >=20 > Signed-off-by: Ciara Power >=20 > --- Acked-by: Fan Zhang