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 15761A0487 for ; Mon, 1 Jul 2019 13:48:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC0984D27; Mon, 1 Jul 2019 13:48:25 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70079.outbound.protection.outlook.com [40.107.7.79]) by dpdk.org (Postfix) with ESMTP id 89997326D for ; Mon, 1 Jul 2019 13:48:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zq7aLNHK4ef1nSGB5yJsAljgf1MtC8I3P99CBhQR48c=; b=dKe4jSnP8gKh1ay7zOpabson2tNSUvfNvaZkDqYaACziMMAMzjqL0ScKOxjcmc3pg2ykqPSEWlMMXulMfdO7nU4XaD+3RPGEShgmpFPKSxL8h4IINcHNWWeG7k3hDVm2KdqWxev7B1QQNwSMidBoQrFm9rGrHoCfoomL3/LgfgE= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (20.179.235.82) by VE1PR04MB6640.eurprd04.prod.outlook.com (20.179.235.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.17; Mon, 1 Jul 2019 11:48:23 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::a929:3d03:7bb7:d5e0]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::a929:3d03:7bb7:d5e0%7]) with mapi id 15.20.2032.019; Mon, 1 Jul 2019 11:48:23 +0000 From: Akhil Goyal To: Junxiao Shi , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] cryptodev: free memzone when releasing cryptodev Thread-Index: AQHVLeYLrDHB9/3ZSUKsaSrn6hD0kaa1qcnQ Date: Mon, 1 Jul 2019 11:48:23 +0000 Message-ID: References: <201905301724.x4UHOJN7016223@lectura.cs.arizona.edu> <201906281916.x5SJGeFj004670@lectura.cs.arizona.edu> In-Reply-To: <201906281916.x5SJGeFj004670@lectura.cs.arizona.edu> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b45fc055-4dff-493a-31af-08d6fe1a0578 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6640; x-ms-traffictypediagnostic: VE1PR04MB6640: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2276; x-forefront-prvs: 00851CA28B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(376002)(396003)(39860400002)(346002)(199004)(189003)(74316002)(7736002)(305945005)(99286004)(4744005)(446003)(86362001)(476003)(11346002)(7696005)(52536014)(44832011)(14454004)(316002)(486006)(256004)(110136005)(478600001)(5660300002)(6506007)(102836004)(66556008)(66476007)(66446008)(64756008)(76176011)(2906002)(73956011)(66946007)(68736007)(2501003)(71200400001)(186003)(71190400001)(53936002)(3846002)(6116002)(76116006)(66066001)(26005)(9686003)(25786009)(55016002)(229853002)(81156014)(81166006)(33656002)(6246003)(8936002)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6640; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: tfKti4CjF6SOCZ4S3am/HX6uJc2HM6MRLw7AmdFFM3h7K/FcrKkTlym8ZZTUktPIWMafH6oowKwSOr+vqOxOvWkO0gqYMv7jDYiwoQF6u3ElrjFEQJB4UPU8izoSdHkQVvFfJO4WUjgzGPod+VpAXoheeycSVNXjEw0s/83z21Z8CVlvU04f3S5CJGN7GCpkYvCo695FF4F9eJ/KIO0qWeTN+PYwe16ZRbF55sSlXN/R78WKpdwM5sxufiAV+9ZGJU0I72O2fMcXSj2Vn6wq5OVHWZFSQg2+uun/axUuK194eYX9eFPFx4U3LzztAgOQrselH1bGJl4y/OiurchvC85obhZa8HjQ8R7TKQpkzt4n1u23gy9RopCQKcnKYZUwm3fhnhB52rN2rQ9kF31F/kdSJW4Wf0xn1vbx2E458qw= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b45fc055-4dff-493a-31af-08d6fe1a0578 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2019 11:48:23.2132 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: akhil.goyal@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6640 Subject: Re: [dpdk-dev] [PATCH v2] cryptodev: free memzone when releasing cryptodev 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" >=20 > When a cryptodev is created in a primary process, > rte_cryptodev_data_alloc reserves a memzone. > However, this memzone was not released when the cryptodev > is uninitialized. After that, new cryptodev cannot be > created due to memzone name conflict. >=20 > This commit frees the memzone when a cryptodev is > uninitialized, fixing this bug. This approach is chosen > instead of keeping and reusing the old memzone, because > the new cryptodev could belong to a different NUMA socket. >=20 > Also, rte_cryptodev_data pointer is now properly recorded > in cryptodev_globals.data array. >=20 > Bugzilla ID: 105 >=20 > Signed-off-by: Junxiao Shi > --- Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.