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 52EFFA0093; Tue, 17 May 2022 16:16:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1C6640041; Tue, 17 May 2022 16:16:58 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id C26794003C for ; Tue, 17 May 2022 16:16: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=1652797016; x=1684333016; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=bhdG28rWTKHxCN63F0loXY8eTCWYSvmQwT2rxwtN09M=; b=Tjl1h4HV5L7eUmkBYvwml+xyydyzw/wX8rD8Svk2AYV3TbUAYzcXQOOr JpAuvWLBm6/80SWidDVlcuqvxaAcU+ZjmEESXBA6ugfK6Qpg209P4BEzZ R8x8h6lQfLudulqJky7stFpjnczSNtfikE3n/qrFS4AISM1DKLsVdTWh+ eQPL3d2wf9s02+HGIe2pnB0kDjBh8ih0mnl+MuIN5iQoew/dZ1GLBK/Vb pnV3AVhFx7kLR2q9K5PdluX3LyTXMODO/GONHrmDVkjHwDTaJgge9nuM9 YPAoWpu4FUCpT/A6p54oLIgjLGdNSvBv1Ra7pEhI/5H+CA7y+HEHlGK2v w==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="270018916" X-IronPort-AV: E=Sophos;i="5.91,233,1647327600"; d="scan'208";a="270018916" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 07:16:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,233,1647327600"; d="scan'208";a="605376136" Received: from silpixa00400465.ir.intel.com ([10.55.128.22]) by orsmga001.jf.intel.com with ESMTP; 17 May 2022 07:16:54 -0700 From: Kai Ji To: dev@dpdk.org Cc: Kai Ji Subject: [dpdk-dev v2 1/2] build: add in option for qat use intel ipsec-mb lib Date: Tue, 17 May 2022 22:16:51 +0800 Message-Id: <20220517141652.53769-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220407152931.8771-1-roy.fan.zhang@intel.com> References: <20220407152931.8771-1-roy.fan.zhang@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 Add in build option for QAT pmd use intel ipsec-mb lib instead openssl for precompute partial hash & aes. Signed-off-by: Kai Ji --- drivers/common/qat/meson.build | 12 ++++++++++++ meson_options.txt | 2 ++ 2 files changed, 14 insertions(+) diff --git a/drivers/common/qat/meson.build b/drivers/common/qat/meson.build index b7027f3164..d6eaff3e0e 100644 --- a/drivers/common/qat/meson.build +++ b/drivers/common/qat/meson.build @@ -35,6 +35,18 @@ if qat_crypto and not libcrypto.found() 'missing dependency, libcrypto') endif +if get_option('qat_libipsecmb') + IMB_required_ver = '1.0.0' + libipsecmb = cc.find_library('IPSec_MB', required: false) + if not lib.found() + build = false + reason = 'missing dependency, "libIPSec_MB"' + else + ext_deps += libipsecmb + dpdk_conf.set('RTE_QAT_LIBIPSECMB', true) + endif +endif + # The driver should not build if both compression and crypto are disabled #FIXME common code depends on compression files so check only compress! if not qat_compress # and not qat_crypto diff --git a/meson_options.txt b/meson_options.txt index 7c220ad68d..e48e7dd966 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -42,6 +42,8 @@ option('mbuf_refcnt_atomic', type: 'boolean', value: true, description: 'Atomically access the mbuf refcnt.') option('platform', type: 'string', value: 'native', description: 'Platform to build, either "native", "generic" or a SoC. Please refer to the Linux build guide for more information.') +option('qat_libipsecmb', type: 'boolean', value: false, description: + 'use ipsec mb lib instead openssl for QAT pmd') option('enable_trace_fp', type: 'boolean', value: false, description: 'enable fast path trace points.') option('tests', type: 'boolean', value: true, description: -- 2.17.1