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 5DD9C4554F for ; Tue, 2 Jul 2024 17:39:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5175940B97; Tue, 2 Jul 2024 17:39:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id EE906402AD; Tue, 2 Jul 2024 17:39:33 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4626GBM8021264; Tue, 2 Jul 2024 08:39:29 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2175.outbound.protection.outlook.com [104.47.58.175]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 404c49abfh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jul 2024 08:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ULf88W1Hzqx/fWSd4P9M/yGmeSi/JcwQpGUrooFfUj1m5ApU9356flGO7QHYSI4PtTyu7QLkBSjEpuiXn4yc14N0+Iziu1AnAl4xy23Uyc1GCQ8dQlX1hekOWb4+kGOKMjfHxelU1LMnuubV5VQ08bWC8Z0lLfxS98hz6hrIxIClAbGvOIsuWFvcSTQpCSUgUp24uJKMGdPWk/3RCyGBHnHASjzvvshYE+kjOWG64lc8vxmFnLeJU6anPAufAgUKszJNFbpEqnN3U8PCfSU4hiBo04JMhdMEe6MtJUYI530qvPKt4bbk7Aa9i7iBIVlAOS70ZjprnjQkl+w71/iJAw== 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=XQ9LDJ98nvPNVxU7qhYO/gMoBzU/EQhkqSebgB9/YQg=; b=jVx7WAPIpSbUv39BNUwWa8O8oqFqCWSIq3+4YewHSLAhkKUHnVV2pyljyzMNWHgrGt2obQAK0w1WN3yAEEpHulH1j77rwPiRyLzj9wiEr4QdoP1VcZXAz+uVhZYch148Iz14Za/qLxMabd9LEjn15Qi3EFrGzCFW4YsTtClQmLgwtne0UexYNZgvFhbaHPDKBQ2jZwoFEp0lew31dszPF3ROupyNz/GZ/1qCJmHymUxxmxGXfUb1GllM/+KdzR66F1rwLNBeMOw+SE0me3F0Dp2uMQuHLJi76+5ZXgP7A0SZgN+uAcoSWdT7dzVjOuT9ch3Bh9UUeqMSMn+7ggFUuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XQ9LDJ98nvPNVxU7qhYO/gMoBzU/EQhkqSebgB9/YQg=; b=bDTy1a92M0RItZrqVCryUs49aiD9yUj9YHWIs8L0jz/fKvMZQ5C58NzEq2utSMt1scJIc0B0G83ci4I4ve+sGgxvENZieKLi8psdCvUDdOCY2bsBnM2jPiMBawAzryg8WHgtdBMDG2OxUBlPkJxGc3OZhobviow6U06mHSHZPUc= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by LV3PR18MB6207.namprd18.prod.outlook.com (2603:10b6:408:275::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.23; Tue, 2 Jul 2024 15:39:26 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d%6]) with mapi id 15.20.7741.017; Tue, 2 Jul 2024 15:39:26 +0000 From: Akhil Goyal To: Jack Bond-Preston , Kai Ji , Fan Zhang CC: "dev@dpdk.org" , "stable@dpdk.org" , Wathsala Vithanage Subject: RE: [EXTERNAL] [PATCH v4 1/5] crypto/openssl: fix GCM and CCM thread unsafe ctxs Thread-Topic: [EXTERNAL] [PATCH v4 1/5] crypto/openssl: fix GCM and CCM thread unsafe ctxs Thread-Index: AQHauNjz6lXWSvBbtkeb+LzmfK/qy7Hjufew Date: Tue, 2 Jul 2024 15:39:26 +0000 Message-ID: References: <20240603160119.1279476-1-jack.bond-preston@foss.arm.com> <20240607124756.3968704-1-jack.bond-preston@foss.arm.com> <20240607124756.3968704-2-jack.bond-preston@foss.arm.com> In-Reply-To: <20240607124756.3968704-2-jack.bond-preston@foss.arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|LV3PR18MB6207:EE_ x-ms-office365-filtering-correlation-id: 3df429a2-a031-4f38-3796-08dc9aad27b7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?Zv/Yq0O3HVUhHJ+uoh2U9UNHU5NwUILB00FMHfHMenEDHJ5vX+z1/SAacv9y?= =?us-ascii?Q?3esW4yGPTTbB2NH+uHp+pTEEvCF9e6up79Tb5EPEIEvvBCAmDNEkzVFJw1YQ?= =?us-ascii?Q?6bd/bftNgOp5SCMkEU7skCV7+JbGVbq6tUtsoaSbc7cT1//3I2cTYbZ+Ca+k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ayEbtS/cyjN3TBC6L6v3O2VanpCeX6Q1CJ18ydzu3?= =?us-ascii?Q?swrxM++yUUBTpRuz75Q/jVvlT7VzMiOnCmHJn2lRAcNgoV3idPG2v2MFp+68?= =?us-ascii?Q?sjWjxOhOwbcmCGOmQYMStGhxtt1TgLoPZbIBwpK1Vubdhf7ir4X69Lv1fV+v?= =?us-ascii?Q?+jF4swhc1slIDsXUEdjjD9kKLa2tnYQvHHwp+XHjrmjZKHKvrMCzQ6QINgFl?= =?us-ascii?Q?sPwlwsQIi47ZCOnWcgXBRaZ/RWjt6XTfHm4wNTp0r92vkGcX6HkdfIzbeCsW?= =?us-ascii?Q?Wsmt2uhMjxxn2MVKbuQOW4YU7pmP5ttal6uZspOXmA6XFjTeYNBAKpTNfog9?= =?us-ascii?Q?omyXmAIhvrzuSwQrCweMrONOq6m7zUfVKQUNacSfW1jUGQ8S6g=3D=3D?= 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:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kRqY1OaPvsxCXBOC0rJc77P2z26eVmm8vTjPe0Ys8WJ8ZM4vrTy4305S9f8A?= =?us-ascii?Q?tycfCGCmYlLUQIPvHd8BV7j/U5Le5V/hn2tKyufsUkNyrDqGs6LD3kTxlvLT?= =?us-ascii?Q?W8+0BInmrLVY8P9leRDtaCCEy6Z/LVP2wkSI5G11kXTTOzwF+C877pnuNEkX?= =?us-ascii?Q?7vqkdOrxo6YQxUhrfqp9Nh6StxjsUdg5rWtgJVSW6lZ/J/2rUaH8EsVQPXzu?= =?us-ascii?Q?ToiP4LSNZ2Baz3WMUv64er30a4RHvwT5mi1pY7v98+IwiaeGQh9XXf2kOZzN?= =?us-ascii?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KmhQjqAdM8SLmtAFkcGB9Qv+Kv6?= =?us-ascii?Q?qtlanDzOyyUWbsOG+nS0xES+lXOREOYHJIyyxgOGACDQYK/dVLmrDRrZWNMP?= =?us-ascii?Q?5Sdt4cGskYeDy/rxuOh1cE/9J+j1jcA3Yat3rl8Qjl9/bX9fZSS9rcClqipE?= =?us-ascii?Q?uUI/OjvlZXk2b3eah2dyBsHVvZrqdeY6o9cdWdeBTRaG+uCYPXB/PDbeZtfL?= =?us-ascii?Q?F8gbX/KBt1Z4SNoF9Mn/KZ2r0bLqj/VvWN7wsK9/l+w5jUMkYlrf86+MhH11?= =?us-ascii?Q?Mw6+jqyIC2D3G4gQjOKV1RJFAp/y1RGP8tJL7CseAvae9lDc+LxeUVpdP6n6?= =?us-ascii?Q?ZPggQl7hThY7B5euJsOMbGg0RFJdDmkljLt+ZKuwGABGbenuIZQXyvL1l+rx?= =?us-ascii?Q?0CnfPr5L4vkNAVkP1mtBKgU+VEmWtkLkJIoqc6NS?= 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: 3df429a2-a031-4f38-3796-08dc9aad27b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2024 15:39:26.5681 (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: RcZh263GvZUT8HQ9Mkzt+z+dG1J9NDIfnswXmkADMvKghMfi5CVzug+UO6/qKst3Wp1Y1MuzbhaVM0K/SMOuxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR18MB6207 X-Proofpoint-ORIG-GUID: WPO1i2qYBeE6Ah05WgOVMUOqPOL6hclS X-Proofpoint-GUID: WPO1i2qYBeE6Ah05WgOVMUOqPOL6hclS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-02_11,2024-07-02_02,2024-05-17_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > Commit 67ab783b5d70 ("crypto/openssl: use local copy for session > contexts") introduced a fix for concurrency bugs which could occur when > using one OpenSSL PMD session across multiple cores simultaneously. The > solution was to clone the EVP contexts per-buffer to avoid them being > used concurrently. >=20 > However, part of commit 75adf1eae44f ("crypto/openssl: update HMAC > routine with 3.0 EVP API") reverted this fix, only for combined ops > (AES-GCM and AES-CCM). >=20 > Fix the concurrency issue by cloning EVP contexts per-buffer. An extra > workaround is required for OpenSSL versions which are >=3D 3.0.0, and > <=3D 3.2.0. This is because, prior to OpenSSL 3.2.0, EVP_CIPHER_CTX_copy(= ) > is not implemented for AES-GCM or AES-CCM. When using these OpenSSL > versions, create and initialise the context from scratch, per-buffer. >=20 > Throughput performance uplift measurements for AES-GCM-128 encrypt on > Ampere Altra Max platform: > 1 worker lcore > | buffer sz (B) | prev (Gbps) | optimised (Gbps) | uplift | > |-----------------+---------------+--------------------+----------| > | 64 | 2.60 | 1.31 | -49.5% | > | 256 | 7.69 | 4.45 | -42.1% | > | 1024 | 15.33 | 11.30 | -26.3% | > | 2048 | 18.74 | 15.37 | -18.0% | > | 4096 | 21.11 | 18.80 | -10.9% | >=20 > 8 worker lcores > | buffer sz (B) | prev (Gbps) | optimised (Gbps) | uplift | > |-----------------+---------------+--------------------+----------| > | 64 | 19.94 | 2.83 | -85.8% | > | 256 | 58.84 | 11.00 | -81.3% | > | 1024 | 119.71 | 42.46 | -64.5% | > | 2048 | 147.69 | 80.91 | -45.2% | > | 4096 | 167.39 | 121.25 | -27.6% | >=20 > Fixes: 75adf1eae44f ("crypto/openssl: update HMAC routine with 3.0 EVP AP= I") > Cc: stable@dpdk.org > Signed-off-by: Jack Bond-Preston > Reviewed-by: Wathsala Vithanage I am seeing below errors when it is compiled with openssl 3.0 [1/30] Compiling C object 'drivers/a715181@@tmp_rte_crypto_openssl@sta/cryp= to_openssl_rte_openssl_pmd_ops.c.o'. FAILED: drivers/a715181@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_open= ssl_pmd_ops.c.o ccache gcc -Idrivers/a715181@@tmp_rte_crypto_openssl@sta -Idrivers -I../dri= vers -Idrivers/crypto/openssl -I../drivers/crypto/openssl -Ilib/cryptodev -= I../lib/cryptodev -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib= /eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x= 86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -I= lib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -I= lib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I..= /lib/telemetry -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ili= b/ring -I../lib/ring -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers= /bus/vdev -I/usr/local/include -fdiagnostics-color=3Dalways -pipe -D_FILE_O= FFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O2 -g -incl= ude rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wfo= rmat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs = -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -= Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligne= d -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=3Dnative -mrtm= -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE= _LOG_DEFAULT_LOGTYPE=3Dpmd.crypto.openssl -MD -MQ 'drivers/a715181@@tmp_rte= _crypto_openssl@sta/crypto_openssl_rte_openssl_pmd_ops.c.o' -MF 'drivers/a7= 15181@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_openssl_pmd_ops.c.o.d'= -o 'drivers/a715181@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_openssl= _pmd_ops.c.o' -c ../drivers/crypto/openssl/rte_openssl_pmd_ops.c In file included from ../drivers/crypto/openssl/rte_openssl_pmd_ops.c:12: ../drivers/crypto/openssl/compat.h: In function 'free_hmac_ctx': ../drivers/crypto/openssl/compat.h:24:2: error: 'HMAC_CTX_free' is deprecat= ed: Since OpenSSL 3.0 [-Werror=3Ddeprecated-declarations] 24 | HMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/openssl_pmd_private.h:10, from ../drivers/crypto/openssl/rte_openssl_pmd_ops.c:11: /usr/local/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/rte_openssl_pmd_ops.c:12: ../drivers/crypto/openssl/compat.h: In function 'free_cmac_ctx': ../drivers/crypto/openssl/compat.h:30:2: error: 'CMAC_CTX_free' is deprecat= ed: Since OpenSSL 3.0 [-Werror=3Ddeprecated-declarations] 30 | CMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/openssl_pmd_private.h:9, from ../drivers/crypto/openssl/rte_openssl_pmd_ops.c:11: /usr/local/include/openssl/cmac.h:34:28: note: declared here 34 | OSSL_DEPRECATEDIN_3_0 void CMAC_CTX_free(CMAC_CTX *ctx); | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors [2/30] Compiling C object 'drivers/a715181@@tmp_rte_crypto_openssl@sta/cryp= to_openssl_rte_openssl_pmd.c.o'. FAILED: drivers/a715181@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_open= ssl_pmd.c.o ccache gcc -Idrivers/a715181@@tmp_rte_crypto_openssl@sta -Idrivers -I../dri= vers -Idrivers/crypto/openssl -I../drivers/crypto/openssl -Ilib/cryptodev -= I../lib/cryptodev -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib= /eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x= 86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -I= lib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -I= lib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I..= /lib/telemetry -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ili= b/ring -I../lib/ring -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers= /bus/vdev -I/usr/local/include -fdiagnostics-color=3Dalways -pipe -D_FILE_O= FFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O2 -g -incl= ude rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wfo= rmat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs = -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -= Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligne= d -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=3Dnative -mrtm= -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE= _LOG_DEFAULT_LOGTYPE=3Dpmd.crypto.openssl -MD -MQ 'drivers/a715181@@tmp_rte= _crypto_openssl@sta/crypto_openssl_rte_openssl_pmd.c.o' -MF 'drivers/a71518= 1@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_openssl_pmd.c.o.d' -o 'dri= vers/a715181@@tmp_rte_crypto_openssl@sta/crypto_openssl_rte_openssl_pmd.c.o= ' -c ../drivers/crypto/openssl/rte_openssl_pmd.c In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h: In function 'free_hmac_ctx': ../drivers/crypto/openssl/compat.h:24:2: error: 'HMAC_CTX_free' is deprecat= ed: Since OpenSSL 3.0 [-Werror=3Ddeprecated-declarations] 24 | HMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:14: /usr/local/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h: In function 'free_cmac_ctx': ../drivers/crypto/openssl/compat.h:30:2: error: 'CMAC_CTX_free' is deprecat= ed: Since OpenSSL 3.0 [-Werror=3Ddeprecated-declarations] 30 | CMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:13: /usr/local/include/openssl/cmac.h:34:28: note: declared here 34 | OSSL_DEPRECATEDIN_3_0 void CMAC_CTX_free(CMAC_CTX *ctx); | ^~~~~~~~~~~~~ ../drivers/crypto/openssl/rte_openssl_pmd.c: In function 'openssl_reset_ses= sion': ../drivers/crypto/openssl/rte_openssl_pmd.c:908:33: error: passing argument= 1 of 'free_hmac_ctx' from incompatible pointer type [-Werror=3Dincompatibl= e-pointer-types] 908 | free_hmac_ctx(sess->qp_ctx[i].hmac); | ~~~~~~~~~~~~~~~^~~~~ | | | EVP_MAC_CTX * {aka struct evp_mac_c= tx_st *} In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h:22:25: note: expected 'HMAC_CTX *' {aka = 'struct hmac_ctx_st *'} but argument is of type 'EVP_MAC_CTX *' {aka 'struc= t evp_mac_ctx_st *'} 22 | free_hmac_ctx(HMAC_CTX *ctx) | ~~~~~~~~~~^~~ ../drivers/crypto/openssl/rte_openssl_pmd.c:912:33: error: passing argument= 1 of 'free_cmac_ctx' from incompatible pointer type [-Werror=3Dincompatibl= e-pointer-types] 912 | free_cmac_ctx(sess->qp_ctx[i].cmac); | ~~~~~~~~~~~~~~~^~~~~ | | | EVP_MAC_CTX * {aka struct evp_mac_c= tx_st *} In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h:28:25: note: expected 'CMAC_CTX *' {aka = 'struct CMAC_CTX_st *'} but argument is of type 'EVP_MAC_CTX *' {aka 'struc= t evp_mac_ctx_st *'} 28 | free_cmac_ctx(CMAC_CTX *ctx) | ~~~~~~~~~~^~~ ../drivers/crypto/openssl/rte_openssl_pmd.c:925:32: error: passing argument= 1 of 'free_hmac_ctx' from incompatible pointer type [-Werror=3Dincompatibl= e-pointer-types] 925 | free_hmac_ctx(sess->auth.hmac.ctx); | ~~~~~~~~~~~~~~~^~~~ | | | EVP_MAC_CTX * {aka struct evp_mac_ct= x_st *} In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h:22:25: note: expected 'HMAC_CTX *' {aka = 'struct hmac_ctx_st *'} but argument is of type 'EVP_MAC_CTX *' {aka 'struc= t evp_mac_ctx_st *'} 22 | free_hmac_ctx(HMAC_CTX *ctx) | ~~~~~~~~~~^~~ ../drivers/crypto/openssl/rte_openssl_pmd.c:928:32: error: passing argument= 1 of 'free_cmac_ctx' from incompatible pointer type [-Werror=3Dincompatibl= e-pointer-types] 928 | free_cmac_ctx(sess->auth.cmac.ctx); | ~~~~~~~~~~~~~~~^~~~ | | | EVP_MAC_CTX * {aka struct evp_mac_ct= x_st *} In file included from ../drivers/crypto/openssl/rte_openssl_pmd.c:19: ../drivers/crypto/openssl/compat.h:28:25: note: expected 'CMAC_CTX *' {aka = 'struct CMAC_CTX_st *'} but argument is of type 'EVP_MAC_CTX *' {aka 'struc= t evp_mac_ctx_st *'} 28 | free_cmac_ctx(CMAC_CTX *ctx) | ~~~~~~~~~~^~~ cc1: all warnings being treated as errors