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 91B1AA034D; Wed, 9 Feb 2022 21:09:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DFCC41141; Wed, 9 Feb 2022 21:09:43 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 4523C41101 for ; Wed, 9 Feb 2022 21:09:42 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 219II1rB014384; Wed, 9 Feb 2022 12:09:39 -0800 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e4am92rrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Feb 2022 12:09:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZQXQ3V3smtdOgLsaeDKgHso5piX1HQI4Uz8o03z730tD/HJj/54J2TOJZwuxEXl6xmzbfFWtA7z03N4hjaPUQVHYc+XMrlZpBxPWMtzKJEnk6+nGfd/HvVBlpDF1BatvuEkreZDzs8DctICKegvZeYBcmBYv/4+sDpqegv69xqcmjiwofQ4Tce8nGx6RKoeC3LjmnI08JhuKtvlIuR6FyrPadCtThdVCNSS5dEXOrK4yUF0S3R/LecQNj15IqbJI2mJRfAXW1chXMgxjimFpUa0w/G+Ylx8b7kt02HxnJ+MuL9sBEoSszGqFYdqR/p+zwY2cT+RaM7UTdtWatDZW3g== 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=ncaYObZsBU4I5F6koO+VzvGdcehA38fYQ4JII6KgwBA=; b=kuZ1SZCGQ4enpRy2cSHFURUX3Ah67R/wpCuzxcoEp7yaEdDs1P4rZohVokI+hHE2Yqb6mVoF0DLki/5xPAsp0Hbh0o1L59RCNXMJjAJKN+8blrP+qp1+5h5CYlQoD0xl4bVS55kBbDs5qf47R8NJGP3LvqvjgB+jBVHjI+b+qevy6KNyklJEMMBcDnVnwtA+0FVKxu6rVArQHzxSElueZeXc8HIruTqYf16WuG1iszxsY5+MH9njFj5v/NaLgwLrEKAkJ0j7dXglwX8b9776J+YIJRzLbtTXce9rBWoJhh0539py21PlHdhdPVGTPPUbc81n6DmKdFDYeb58NtDf0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ncaYObZsBU4I5F6koO+VzvGdcehA38fYQ4JII6KgwBA=; b=ZBFF6QI5x5s1v+4fC9h54ljQIr9oPEk13SeqLXL1IkhgZ6MQG23We2lqTCIwRibTnhDKV9Ocgmky6XP5/2fgSQWqtBMEkhs56TVlhDwLGJcXJp8kQk230oQ/WUFtkkFLDFhgRBFHZr8pyNdumXEfZEseQM5gkzqVRRmuKR8BgmM= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MW3PR18MB3484.namprd18.prod.outlook.com (2603:10b6:303:52::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Wed, 9 Feb 2022 20:09:33 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9985:c3ca:2f91:7fc]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::9985:c3ca:2f91:7fc%5]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 20:09:33 +0000 From: Akhil Goyal To: Ciara Power , "dev@dpdk.org" CC: "roy.fan.zhang@intel.com" , Anoob Joseph , "mdr@ashroe.eu" , Declan Doherty Subject: RE: [EXT] [PATCH v4 4/5] crypto: add asym session user data API Thread-Topic: [EXT] [PATCH v4 4/5] crypto: add asym session user data API Thread-Index: AQHYHcsyuUwjv2QkdkmwKY53iQcY+ayLpGxw Date: Wed, 9 Feb 2022 20:09:32 +0000 Message-ID: References: <20220209153854.2740455-1-ciara.power@intel.com> <20220209153854.2740455-5-ciara.power@intel.com> In-Reply-To: <20220209153854.2740455-5-ciara.power@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dc04c4e3-63d7-4285-a869-08d9ec081671 x-ms-traffictypediagnostic: MW3PR18MB3484:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2449; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6hWOGlYkfuPnHRdy+SUyoW/r5UxTdhk1l3/cesZAejEde2NGpyudFzWaAT1Nt0EJY5KKqIgDPTUb8fwHFXgqvhgjdebV7gBzlILGtx6yJCblqUdW8Tfs2nYJUzt+fhQfutT5WpBm4GO7ZTEXn+N5QOTlL1dO8w6QAvVIVNy3xvHdjYxTbGCXrf3gHse0khkR7dC8+w4dsA6CVsk8CLtGQrqop+G4m+UiYz7V6FYEW8kbt8C+uO/bLxc60hq+RBsrMudUg2oAQAV73atm0FEO7xmcHaAxaE/yNnMIyT2yEn2l9kxJBYRt5TVg3JS3FqTUPQ9LqWdbjmGRQI3X+KoZaSuuidsNw496g9a13B+tplxr/NjKBSemgRuonmNidDy2FN19UQx+vj52DoIAKmYBT8GWKEwA9aV97fqi8leUeGWtI4AfLdAedoa61wb0YoM2AndiG+V8N+NMz4BmpD6321OtuhCnZzGOnoq8lda+clz4AByswP56h6/4UsexJyzP9srzxAY2iMn/2xFUPOQxC1Gdh4ru0tPubfSVqfv1fZMEEXVzzowF3XKV5VRowqUrRUSpujhwQv90u4ZH26TN8/pnord3mBs2fntt40ZfctKPIpfIc8m9c21QCnCG91yU/Ur0iWziQjZ6/PBY3Xg8WfdljnwfiBLPqTgRY4aJSV7W8cPrIKVQJeJAaXi12Mcyni6WH8BcFLG7WvQtGc8Bfg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(5660300002)(508600001)(316002)(52536014)(186003)(38100700002)(2906002)(54906003)(122000001)(55016003)(38070700005)(7696005)(8676002)(6506007)(76116006)(64756008)(55236004)(110136005)(86362001)(33656002)(71200400001)(8936002)(9686003)(66946007)(66446008)(66476007)(4326008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Khn5r6Uw8lr1fd0NIkayRVRy+2xd4bdPrG6GTAvweNERNV/kLNdNv/ZMTd9m?= =?us-ascii?Q?4Uu/5oArA9k6qWq7py626VfmqhHJ4s5j3uV142TyZtwZ5ySl6fGPVxT3auVl?= =?us-ascii?Q?f5DNSRCmi6MYR/eaxR8r28KswjS5pV4wncNieVkuGkJIDfEfmdPGxUtS/Wk7?= =?us-ascii?Q?x7ujhZZ0Lz/jEz9TkKi4UfljCV1FfCERyqjDIYIBJo5NUh+STgKjOFPSDTGN?= =?us-ascii?Q?+eeewraflxxZLe04JBA4xNtjXEvsF649ekbINPg+J9itY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zxoEubLM/jEmApv1Hh9xEk4cJwwNJErIc2tnZa7/ELu3WVP?= =?us-ascii?Q?3GV1dKK8x7j17cQwEHVNOhjyXB2p8gcNIZZgsT2ecdEAYjJRJc7rWbmiJLCB?= =?us-ascii?Q?qdDzxfxRTH/LeylbedlXAo0dqz+sBO8NoyN13kNE3TG3dlb4JOA4vsJHModw?= =?us-ascii?Q?MB5miRGPlA9ah1Qdy3bIZyeZ30XILkMFEI8lLljvN4gtkr8DtUt6P9WAs9qm?= =?us-ascii?Q?Ru4EZoQj8YMM3rMd7TkMyjH7YuVahq0GMO8rydSfjqqLciGQO0mDMIFZVHk1?= =?us-ascii?Q?yktU9en7IQ+5lJyc62LGlI3ljFmfCyzveRqc7NaXaQkkBDhHojwlx49+Xe8o?= =?us-ascii?Q?r/+66yMuBTNvu1DcAgzSjfH1oudpq/li6TK7cz+AJsnTEOA8b0YvZj1yDI8Y?= =?us-ascii?Q?JLpmWklGB3VqOMK1kFqP6QGp8sLfzw4+fEKQbdBJArTgEQZgFvJyQPYNcVjG?= =?us-ascii?Q?i78/8L4sblHCUt2uBfUmFyo=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc04c4e3-63d7-4285-a869-08d9ec081671 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2022 20:09:32.9283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GQ+G4rUaHVq+tZHsiAP6cCwdkysIboiAdwJ0Nyo6ykbmwowgRrff2644y7WpsVUxmPDI5KojkQFeCPDRn8Yk+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3484 X-Proofpoint-GUID: sfUzmI9x98eVyTA4wfyk0vBhw5AYwR3H X-Proofpoint-ORIG-GUID: sfUzmI9x98eVyTA4wfyk0vBhw5AYwR3H X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-09_10,2022-02-09_01,2021-12-02_01 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 > diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asy= m.c > index fff5c0d59a..f9691fe281 100644 > --- a/app/test/test_cryptodev_asym.c > +++ b/app/test/test_cryptodev_asym.c > @@ -894,7 +894,7 @@ testsuite_setup(void) > } >=20 > ts_params->session_mpool =3D > rte_cryptodev_asym_session_pool_create( > - "test_asym_sess_mp", TEST_NUM_SESSIONS * 2, 0, > + "test_asym_sess_mp", TEST_NUM_SESSIONS * 2, 0, 0, > SOCKET_ID_ANY); >=20 Multiply by 2 is not needed now. > @@ -1803,7 +1805,7 @@ rte_cryptodev_sym_session_pool_create(const char > *name, uint32_t nb_elts, >=20 > struct rte_mempool * > rte_cryptodev_asym_session_pool_create(const char *name, uint32_t nb_elt= s, > - uint32_t cache_size, int socket_id) > + uint32_t cache_size, uint16_t user_data_size, int socket_id) > { > struct rte_mempool *mp; > struct rte_cryptodev_asym_session_pool_private_data *pool_priv; > @@ -1821,7 +1823,8 @@ rte_cryptodev_asym_session_pool_create(const char > *name, uint32_t nb_elts, > return NULL; > } >=20 > - obj_sz =3D rte_cryptodev_asym_get_header_session_size() + max_priv_sz; > + obj_sz =3D rte_cryptodev_asym_get_header_session_size() + max_priv_sz > + > + user_data_size; Extra line > obj_sz_aligned =3D RTE_ALIGN_CEIL(obj_sz, RTE_CACHE_LINE_SIZE); >=20 > mp =3D rte_mempool_create(name, nb_elts, obj_sz_aligned, cache_size,