From patchwork Tue Jul 26 10:05:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 114216 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 4B7EEA00C4; Tue, 26 Jul 2022 12:05:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8CDB40DDD; Tue, 26 Jul 2022 12:05:57 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C59F740695 for ; Tue, 26 Jul 2022 12:05:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658829957; x=1690365957; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=d68L0yhlL3MvhPVQWqJWdMPPjcB3SEKQhKocNjch0Ck=; b=i3cJn6neeKM+YMLo4tSqRhQzuLldcFk/Kdy0FeAN3nmMh1amjNVbq541 DhpO9NM8rZSZxKXXbwIDGDXgoUXaBkr/d+NHselvGEmYKCreMoef+BySF lAQ03EueG+y+V/o6haGQyZwKK++i3k3m1Jr8g6qC/RxeyZ5TOUse8dBM9 3GAGCSzoR4wkDs6n+10MARscDeGHDxQu7Myj+4YxUKj+++OFxZryX62e4 BKYtAQxj00hICrM3oWPUhW9PKy2p4HXMNeeozthUO2YP1XoTZ9i9F2b3Y SEJ/gxB8lEKskH71vz+LQFKQMLALpi4dsiq4fOVBQZJ0sdR32rq9sOIoH A==; X-IronPort-AV: E=McAfee;i="6400,9594,10419"; a="288671705" X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="288671705" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 03:05:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="627834433" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by orsmga008.jf.intel.com with ESMTP; 26 Jul 2022 03:05:52 -0700 From: Kai Ji To: dev@dpdk.org Cc: gakhil@marvell.com, Kai Ji Subject: [dpdk-dev v2] crypto/qat: add in libcrypto version check Date: Tue, 26 Jul 2022 18:05:50 +0800 Message-Id: <20220726100550.71793-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220726095917.69839-1-kai.ji@intel.com> References: <20220726095917.69839-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 --- 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]