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 ACFCA45EED; Thu, 19 Dec 2024 17:47:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58C5140265; Thu, 19 Dec 2024 17:47:49 +0100 (CET) Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazon11013039.outbound.protection.outlook.com [40.107.159.39]) by mails.dpdk.org (Postfix) with ESMTP id 9F77B4025F for ; Thu, 19 Dec 2024 17:47:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EqHEHJW1nzYC4mGgQotGHZ/n6GQPNe2/OeeWMMwEB+a9a/Gy2eAx4cpTMME4k0H68kJnGqq3YfB8QYpMd9UlD1hl/N8f1PhV7a49tguNe1IfMxkm9LMKYhOYI8E+JfSKHTyzNnuViqNIxLyJ8W9BNlWV8sxxWBbWf92yVMmfIcoSQS7G/BfbR6RzsR6eI5XAjL1j7JdHrECVI6oGz3AClVQy61nrv9KzUPH5KobccolsczddncwiwdHcfXII5WNWsJYbwrtOJG2H+I1rqQUj8QP2l9Zma0oKBP0s4NszJd8eyDqxnEIAHCzOxrNsdW0ypSIzjzqYt+n5ETDVFtj9pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zz3dEq+NMWU8DNPrOZg95OLt3auk+9Li2wmI48p7eNk=; b=t94a1V2ete/x5Ol/UaROqUkEWDqyyZeqyc5W+GPe8xaKTlzbgcgSt/6oI3rW3F9Y1efLZTeHF9aj3SZeQ1hlFAGr/Bd/zNNj3NeIgHgYs6Umti4NVs60Re6jrJ3+dEKneHe05Bx7RgJ6lK2XQSreAP2NHfcgWl/26XooCHU4DZM29eX7PcUh3PctXwsj9Gey3Q7l7vlWx2JHLpL4O8hrf3cusFsZRlBbobffxCHUwMdXhHwZADnGFdS4PGFf8B/3romWbgayKJvdczQTpPkA9znuq8l35pOeRd0XAJPGln9NSEK5cZhH5U3gWCOpXA7NUS9159SNSkviZz0xnT6Smg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=dpdk.org smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zz3dEq+NMWU8DNPrOZg95OLt3auk+9Li2wmI48p7eNk=; b=wTIw+jgPjPTQm8mWE47dEv2/WVjxzCowngXHc+TyMoWW81L/cAAvoFKdolSLl/Bezc5khVkGZec8tYH/T3qC5oqtQtYgDlkB/My4VEyMMvgFxJsM24aXmGUGBkLRO4Jp+ANGmUoaqiV8SsQSv+rIOA9UHw1dMAeMi+TruNPPZoFBz5NEyxVdh6WmxRMjnt6WVcAGKvWAL0kSzZ42y7lUn8wOWqYuDvgzsVNJ0i/FqczwGWvMckBymzn59Fh3vxGqRZu0xizXPIIJFiJp7SjR9wb4oNi5zUVY1yXaZwNcImwnS5C5PQW7kfLWHT38cfGnUJcCmD8H7xx+QwpNHVcs7Q== Received: from DU2P250CA0009.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::14) by AS4PR07MB8729.eurprd07.prod.outlook.com (2603:10a6:20b:4f0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 16:47:45 +0000 Received: from DB1PEPF000509F4.eurprd02.prod.outlook.com (2603:10a6:10:231:cafe::c6) by DU2P250CA0009.outlook.office365.com (2603:10a6:10:231::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.22 via Frontend Transport; Thu, 19 Dec 2024 16:47:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by DB1PEPF000509F4.mail.protection.outlook.com (10.167.242.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Thu, 19 Dec 2024 16:47:45 +0000 Received: from seliicinfr00049.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.62) with Microsoft SMTP Server id 15.2.1544.14; Thu, 19 Dec 2024 17:47:44 +0100 Received: from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00049.seli.gic.ericsson.se (Postfix) with ESMTP id 07EFF380070; Thu, 19 Dec 2024 17:47:44 +0100 (CET) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: , Akhil Goyal , Fan Zhang CC: , David Marchand , Thomas Monjalon , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH] cryptodev: allow use of global variables from C++ Date: Thu, 19 Dec 2024 17:35:23 +0100 Message-ID: <20241219163523.164992-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509F4:EE_|AS4PR07MB8729:EE_ X-MS-Office365-Filtering-Correlation-Id: 50ffd937-d132-4922-4e98-08dd204cdd12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?b3p5ZldRQXVKWnFnVFRhVllSK0NYRC9HdWxFc2ZQUlMrcUdXOWpBWklPVDdj?= =?utf-8?B?dmlmbTFJdDZHYkNEYk90dExpbTdyS2tRUjVsMHAwWnRicStqTitsZGxObURm?= =?utf-8?B?am5LbGNBYmgyUnliNjhzd1FLdmJzTlFsS05RYjZKUFpteVQyaVpNOEFQclFp?= =?utf-8?B?K3gxMFVoSEJ5NVdVc1VWMlNkWnc4UkNrWG1NcVdpSzJyWGF1bllXSHFYS1N1?= =?utf-8?B?Znd6MCttNDlhaENmSU9vQ1NTNGpmckV5bjJxOExDVDFOUjBpTzREMk9zaGRI?= =?utf-8?B?UkZnWjhFL0JtTWVnRWtKNCtmZmQvckVCcFY5ci9UNzlzUzh6Z1YrcVNJV0Ur?= =?utf-8?B?N3BrZlNjcHdPdTNCZDhMNUJJZUR5NmEvSzZoZFF3TjlKSGJreWMyc0d0dlhN?= =?utf-8?B?TTc3anQzOGtNTzkwT2hXbGJ2dnBub1RwK0RZalVtT1UzTjlFYTNTZkF2ZVl6?= =?utf-8?B?bkRBdk1LNjNxY1QvL0RlQWEyanRkSEZLSnBPMVRiaytiOVh4OU1UK2tRY0tD?= =?utf-8?B?SjdwaUZTWFJtMEw0ZDk3a0JKQmxLYmxSVDlLNEFlMjNMYU9hdTlRVzlPZWxV?= =?utf-8?B?aXFUNGNZUVpYdVFmQVVwWndkb21CTDE3NTRiQVdTRU5IWVBLRUhoUlJQa3NG?= =?utf-8?B?eU5mSFNmMVpMeU9ZbTZ6QWNhL3dqeVgwbitMUWNzdndHVkRVanQ4OHg4MElD?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DhtSmppSmRF?= =?utf-8?B?KzZSS29MSXpYZ1V2ZThKakZuRTRpemFCbGlyYm9sdlBscjBvVXA0LzRuV241?= =?utf-8?B?emdiOENDY1RtSXFRamVlSU9hcXdIekNVaE5aR1hPTS9lSFdRaVR6ejVhZFRv?= =?utf-8?B?ZlJ5aVBSYUx5cElqU2M3Z0ZRWExrYnpsZlQydGRaK3lZYy9PQ2lsWmREU2w0?= =?utf-8?B?d0xqMUsrU0pEbFlhOUcrVVBqenFVNThCZm5ydDhhWmQ0TkJ1N1kyQVJCaktl?= =?utf-8?B?RGh2KzlPMlZMVGErd240S1dkV1lwRTlpeXVJNnJ3MFpxcnpOOURYaHhXN0hq?= =?utf-8?B?aHNhVnltdCsyMmN4OXlMeWdERGVjV09VcFNrUGI0QTBUdFNqRW9TTUdXcjVE?= =?utf-8?B?K3J1OTFoT1dBPT0=?= X-Forefront-Antispam-Report: CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 16:47:45.4265 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50ffd937-d132-4922-4e98-08dd204cdd12 X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509F4.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8729 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 Avoid C++ name mangling of the two global variables being exported from . Suggested-by: David Marchand Signed-off-by: Mattias Rönnblom --- lib/cryptodev/rte_crypto_asym.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index aeb46e688e..9787b710e7 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -25,6 +25,10 @@ struct rte_cryptodev_asym_session; +#ifdef __cplusplus +extern "C" { +#endif + /** asym key exchange operation type name strings */ extern const char * rte_crypto_asym_ke_strings[]; @@ -33,6 +37,10 @@ rte_crypto_asym_ke_strings[]; extern const char * rte_crypto_asym_op_strings[]; +#ifdef __cplusplus +} +#endif + #define RTE_CRYPTO_ASYM_FLAG_PUB_KEY_NO_PADDING RTE_BIT32(0) /**< * Flag to denote public key will be returned without leading zero bytes -- 2.43.0