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 1093BA0540; Tue, 13 Dec 2022 08:32:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF39140A89; Tue, 13 Dec 2022 08:31:59 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2073.outbound.protection.outlook.com [40.107.7.73]) by mails.dpdk.org (Postfix) with ESMTP id C494B40687 for ; Tue, 13 Dec 2022 08:31:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kCUBdWaxH9jGa5SGWNdFDLGU2cUq6Sb1emU5TD/cF0I=; b=T4VAhzoYUAVHeRCbtG0VCb6G0rz8ZRAc001q06AZOy1DnoiW8wOrZSrWoKIwBE5tRRHtFNYjxhRa4GXeoZBnEIqvpK9WTu/CBO4xDvsQ0SIc+je3/38eSAmtOmF3DAUYAPd4lJAD45kywZMm+GL1ekg6PQqvXph5DotfRb6OaLo= Received: from AM5PR0602CA0008.eurprd06.prod.outlook.com (2603:10a6:203:a3::18) by PR3PR08MB5580.eurprd08.prod.outlook.com (2603:10a6:102:8a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.9; Tue, 13 Dec 2022 07:31:55 +0000 Received: from AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:a3:cafe::72) by AM5PR0602CA0008.outlook.office365.com (2603:10a6:203:a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19 via Frontend Transport; Tue, 13 Dec 2022 07:31:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT048.mail.protection.outlook.com (100.127.140.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5901.21 via Frontend Transport; Tue, 13 Dec 2022 07:31:54 +0000 Received: ("Tessian outbound b4aebcc5bc64:v130"); Tue, 13 Dec 2022 07:31:54 +0000 X-CR-MTA-TID: 64aa7808 Received: from 1645488e6795.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 52B01DFF-856C-46CB-8928-9B45D5D3F57D.1; Tue, 13 Dec 2022 07:31:48 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1645488e6795.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 13 Dec 2022 07:31:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cBd6N28+Sl+MUgKfLMC0oUi+EImPXdUxoVWWBP8bvRuNd8wdfm4JotU+r3rKFEdQiCvT+K/qxiUdXza67arv9tB9PQfbUlqdtoATpRgACwNS+0Dv3fwguKkpmC6JkT6firn6GCWOmO9RshVPXyQ25zGl38ks8RJQkE6fPkmVarBo4YabpcOK1lmtlY4/j45G5xxKxEO/Bplrk/IzKQdWok8/R0j+whPhX89WRG2oOInVyEVQKU++Qstf+tWHj3jNf2HdWm0r9Fzv9K0rkGFLkGuqEnoVC4AYbQuNPn5vJdufjqkJtuHIUw0fY19J/tIX0BijmryNC5rRQqFSO03d1w== 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=kCUBdWaxH9jGa5SGWNdFDLGU2cUq6Sb1emU5TD/cF0I=; b=VEmhjniwPVTEGmgMF/V6JvUwQP4lGG3k4rMd7yV+ORPdizgmHN4LaSiGRtCwdTqvbdNQph9UVb/oS0Zi5nxCl8PqDFIsl1zWQwaTKVpv53EAPLsOtMxbw65ug3M9oVxAs49LW1M4XAARVqSwzfb8oL8oYvVSjsMEZA6lbit3ofLiHwzZNGr5981V7YY/GVlrdwYUULkKZuMzvjrfMad5DPSCMjd9g5akzU18Oh2XnvCFVnYU4NvzwxAFOz6FWYHJoGCucfY9fbbFBlFttGR4E3uhvjOLPGUmsQS0nmd3RIegPR33RcV6k9yxmZEwFbZBsZm41UcIZH+cQq8jHE7/Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kCUBdWaxH9jGa5SGWNdFDLGU2cUq6Sb1emU5TD/cF0I=; b=T4VAhzoYUAVHeRCbtG0VCb6G0rz8ZRAc001q06AZOy1DnoiW8wOrZSrWoKIwBE5tRRHtFNYjxhRa4GXeoZBnEIqvpK9WTu/CBO4xDvsQ0SIc+je3/38eSAmtOmF3DAUYAPd4lJAD45kywZMm+GL1ekg6PQqvXph5DotfRb6OaLo= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by AM8PR08MB5826.eurprd08.prod.outlook.com (2603:10a6:20b:1c6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.10; Tue, 13 Dec 2022 07:31:42 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::7a19:6a76:8969:ae6]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::7a19:6a76:8969:ae6%4]) with mapi id 15.20.5924.009; Tue, 13 Dec 2022 07:31:42 +0000 From: Ruifeng Wang To: Akhil Goyal , "dev@dpdk.org" CC: "ciara.power@intel.com" , "fanzhang.oss@gmail.com" , "kai.ji@intel.com" , "pablo.de.lara.guarch@intel.com" , "hemant.agrawal@nxp.com" , "matan@nvidia.com" , "g.singh@nxp.com" , "anoobj@marvell.com" , "radu.nicolau@intel.com" , "vfialko@marvell.com" , "ktraynor@redhat.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" , nd Subject: RE: [PATCH] cryptodev: add algo enums to string conversion APIs Thread-Topic: [PATCH] cryptodev: add algo enums to string conversion APIs Thread-Index: AQHZDjvyiqyLUVSjkEGe/OOXhVrQAa5rbDYw Date: Tue, 13 Dec 2022 07:31:42 +0000 Message-ID: References: <20221212151023.3308146-1-gakhil@marvell.com> In-Reply-To: <20221212151023.3308146-1-gakhil@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: CED73D4870F5634DACE001FC5C666A43.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: AS8PR08MB7080:EE_|AM8PR08MB5826:EE_|AM7EUR03FT048:EE_|PR3PR08MB5580:EE_ X-MS-Office365-Filtering-Correlation-Id: 286ff6c2-d4ff-4230-474b-08dadcdc1c0d x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UkqwtNcg7CV6DJZxC4JyN3G9zdmJof6djV8Q7Xobux7TUXfL1YG6asCmTBk/0s3g5xtDFbTzm4UqcwdnqTz0iNhpoSQP2st+HcMW0IkLR4GYxqtO60KIokZ2AkscQLH0uwtEaOuSyzbMt430p9LhkgEQ6/6GTNcA2RpojGGqcQLECgK0UaSZJehHEVf88okRD63fCY3w0VaTuzyS7q2ermc/VN7/p8GPbRAudg498qUPzunlsg7Md4ogu5ysMuiIyST8MDLaf/HyHE1ACaVS9g0OeQHyJkZApyjcCkGKDBpGsTFqMtPxcN3Dj4Jxl/x8NnPXmeykHXmywdrVcAr83A7KDM3mk1wKWgFOz0PwGIgDmCR7AxOyjK/3x0qeJBr1PdW2a/HJ26HJ/jUlYcBpBdwBUGEbNYw6kJ9c16dx7gj0+aGKYHiOZVmo1+nrQGgX57pwHOzXWGnCw+Mzbn6WWZn1DGVDDcSj7ouKrscQp1n/Yx6F8q937pStFBZ9iW23u+ea17Rdad+VacktSlyp8L0SqqR/6plTA91mL5ywAtYfSKLVV45AWc9ikH82/fu3/YEFYue8j471xikZiGcJhl6i6eSP8PQjpLiiF7p66nMcdYbgn/M36TS8hrI68tRD3pUGJRtZz95aEwjO42A5ZNHS9sRMuADWGAchDMk1lLvuO93vOd8ahcRnnAXODjRhrzxE/hPbPJHu3okgJUq+TA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(346002)(39860400002)(396003)(366004)(376002)(451199015)(38070700005)(7696005)(6506007)(26005)(53546011)(186003)(9686003)(38100700002)(86362001)(71200400001)(122000001)(2906002)(478600001)(33656002)(66446008)(41300700001)(64756008)(8936002)(7416002)(66476007)(8676002)(66556008)(66946007)(76116006)(4326008)(55016003)(83380400001)(54906003)(316002)(110136005)(52536014)(5660300002); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5826 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0705a6d7-70aa-4da0-602f-08dadcdc1488 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AfvYL2wVUkQwBA7I5fm55jXcXRX/7h1uRIBsrUss1lKmBbcK/ib5G8uJPbVzP1TSo9Ps67nNAmQs7vLQeZbYoZtiwhmLMSXYPkb6oQ5xE0UYymTwggomets8wyIkkHTJ34575XSi2piXgVbiKolJssg/SkIn5spx7XVFZAjvwUNqWNViCk9UyhgLW7Far/3mxiTDSXBz4TdhAnJBbQPdj5XapHFPGuvbcV6KWmtno00Snv/QI5kn/4/TAO3HffZAI3tqPo9cJwZp866IKeLNzZnqcW+ZAvkWaNzOhmd9oFNIyK3krP3e8UuqR1Erzk12MB//lP2m4RpER89YDivG+wCSJVHkCpw7jeFEQpkTgRHuCZw9tu5y/t3qMIL954oN9zqllpuEdvG6fQNU9oUoriaMuQ0r+sd0SRQMJQlvC3qOBkUwuybgmGXbRWRHK33HzXVhacxSiqisq3wnnVWAdCrJ1QOfGS2ldzKc2kHMV/VJCwt8O+4wDd4cREXRetxirPeRwq2ajJHPYkykkeRAQYIJk7iWK/9yvC1cq6m6JptA/V2nY0VFWPswyX8o2Fijh5wH7GOV1pCiavYiR8U4Fts/+ql/1sFqnz5tkhTeZ89gXqUD1wuxojSOUX5AuTjBp7VrLG67sbt1kjLfuX2oqFAaXy0XCPudREayQUSgfSqd+95/Zcz/B2o3QvVMSF4X7pCuIHxd/T36jXgUX4hfxQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(136003)(39860400002)(376002)(451199015)(46966006)(40470700004)(36840700001)(8676002)(70586007)(4326008)(110136005)(33656002)(478600001)(70206006)(54906003)(316002)(26005)(36860700001)(40480700001)(82310400005)(83380400001)(81166007)(356005)(55016003)(53546011)(6506007)(7696005)(336012)(9686003)(47076005)(82740400003)(40460700003)(86362001)(186003)(52536014)(8936002)(41300700001)(5660300002)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2022 07:31:54.7269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 286ff6c2-d4ff-4230-474b-08dadcdc1c0d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5580 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: Akhil Goyal > Sent: Monday, December 12, 2022 11:10 PM > To: dev@dpdk.org > Cc: ciara.power@intel.com; fanzhang.oss@gmail.com; kai.ji@intel.com; > pablo.de.lara.guarch@intel.com; hemant.agrawal@nxp.com; matan@nvidia.com;= g.singh@nxp.com; > Ruifeng Wang ; anoobj@marvell.com; radu.nicolau@int= el.com; > vfialko@marvell.com; ktraynor@redhat.com; david.marchand@redhat.com; thom= as@monjalon.net; > Akhil Goyal > Subject: [PATCH] cryptodev: add algo enums to string conversion APIs >=20 > Symmetric/Asymmetric algorithm strings are accessed by application using = arrays in > cryptodev lib, which hampers new algorithms addition in the array due to = ABI breakage. > These arrays are now deprecated and will be removed in next ABI break rel= ease. > New APIs are added for getting the algorithm strings based on enum values= . >=20 > Signed-off-by: Akhil Goyal > --- > app/test-crypto-perf/cperf_options_parsing.c | 6 +- > app/test/test_cryptodev_asym.c | 2 +- > app/test/test_cryptodev_security_ipsec.c | 8 +- > doc/guides/rel_notes/deprecation.rst | 7 + > drivers/crypto/openssl/rte_openssl_pmd_ops.c | 2 +- > drivers/crypto/qat/qat_sym_session.c | 7 +- > examples/l2fwd-crypto/main.c | 12 +- > lib/cryptodev/cryptodev_trace_points.c | 12 ++ > lib/cryptodev/rte_crypto_asym.h | 1 + > lib/cryptodev/rte_crypto_sym.h | 3 + > lib/cryptodev/rte_cryptodev.c | 182 ++++++++++++++++++- > lib/cryptodev/rte_cryptodev.h | 52 ++++++ > lib/cryptodev/rte_cryptodev_trace.h | 32 ++++ > lib/cryptodev/version.map | 10 + > 14 files changed, 309 insertions(+), 27 deletions(-) >=20 Reviewed-by: Ruifeng Wang