From patchwork Tue Jul 26 11:56:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 114220 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED38BA00C4; Tue, 26 Jul 2022 13:56:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D03BE40DDD; Tue, 26 Jul 2022 13:56:13 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 489AE40695 for ; Tue, 26 Jul 2022 13:56:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658836572; x=1690372572; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=d68L0yhlL3MvhPVQWqJWdMPPjcB3SEKQhKocNjch0Ck=; b=WZTu6pNr8hYHD7BDWyhMlB22XqS8LRMTCGKz07pp0QMVwj34LG1FvYlH rml7fyrsV5fhLYYea2/kuWVx1VP16CZONBMMDxSrWJOJ4bbFuLTkLP7zD 80d5xMfNNAblNjUDOjHKJ0Li6TQLfy9L959IzWCOv7kJdnBuoHmrkVC0H XU/vDPTTkOYJcIxKmHI/fhkd+qJ4brHLtzPjxc4I6Kaz+Dq6TsvbcCJ1g nzDWv2XNUtBqAE7YNvXc1TYahvvg3a5dSGWJWa91ZZvOl3CS5psL5CWWO tANnEOiGMxe9aPQnESEf9q+gDhh/DiUkH1GIxBXFE2uIsD3Bxkti3M/nq A==; X-IronPort-AV: E=McAfee;i="6400,9594,10419"; a="288691077" X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="288691077" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 04:56:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="927302836" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2022 04:56:10 -0700 From: Kai Ji To: dev@dpdk.org Cc: gakhil@marvell.com, Kai Ji Subject: [dpdk-dev v2] Crypto/qat: fix build with OpenSSL 1.1 Date: Tue, 26 Jul 2022 19:56:08 +0800 Message-Id: <20220726115608.84140-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220726100550.71793-1-kai.ji@intel.com> References: <20220726100550.71793-1-kai.ji@intel.com> 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 This patch add in libcrypto version check before enable libipsec-mb for QAT. The inter-ipsec-mb lib for partial hash and AES calculation should only be enabled when both OpensSSL 3.0 and IPSec_MB 1.2.0 are installed on the system. Signed-off-by: Kai Ji Acked-by: Akhil Goyal --- drivers/common/qat/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/common/qat/meson.build b/drivers/common/qat/meson.build index 245c0fbe61..8247bdd017 100644 --- a/drivers/common/qat/meson.build +++ b/drivers/common/qat/meson.build @@ -37,7 +37,9 @@ endif IMB_required_ver = '1.2.0' libipsecmb = cc.find_library('IPSec_MB', required: false) -if libipsecmb.found() +libcrypto_3 = dependency('libcrypto', required: false, + method: 'pkg-config', version : '>=3.0.0') +if libipsecmb.found() and libcrypto_3.found() # version comes with quotes, so we split based on " and take the middle imb_ver = cc.get_define('IMB_VERSION_STR', prefix : '#include').split('"')[1]