From patchwork Tue Jul 26 09:59:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ji, Kai" X-Patchwork-Id: 114215 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 9E1F7A00C4; Tue, 26 Jul 2022 11:59:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C95140DDD; Tue, 26 Jul 2022 11:59:24 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 48A4940695 for ; Tue, 26 Jul 2022 11:59:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658829563; x=1690365563; h=from:to:cc:subject:date:message-id; bh=/r9+VkUWqIF8yAe0GgXgPumSVOybiy7nzCJIf95PpZI=; b=WVK+jYGucoX/rFchsRkOWS2Lmv11mm76Hmupe2bgYIr8rfEI5BGJ0uwc kQNrH02rgLCIV5blfUkVHcAmv4aHyI2mKvbglV593nF3p2U8RJpW35Efy aV5iubUh+/pb+Ytmh7AaXHpw47Y+1xBY9fpkhMh+2MDG7c5po7H7jHmmV BzuEed4uBTJQhic5Vze90hfa/gvfFJu8DhAljMgN/4gOGwwBV5OLyTDUL 26CiNnaQUr3idhPYIpzflFI0naSJKMcnL4tNCGZF/LGiF+Zdz9YGYg4K6 cAcam+Gn1yfKzpzECBifJGQfPDyrqqsDRDgVRqMN6RrgirJYIladV03QW Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10419"; a="349615053" X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="349615053" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 02:59:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="627831691" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by orsmga008.jf.intel.com with ESMTP; 26 Jul 2022 02:59:20 -0700 From: Kai Ji To: dev@dpdk.org Cc: gakhil@marvell.com, Kai Ji Subject: [dpdk-dev v1] crypto/qat: add in libcrypto version check Date: Tue, 26 Jul 2022 17:59:17 +0800 Message-Id: <20220726095917.69839-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 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 cacluation 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]