From patchwork Sat Sep 29 12:00:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Kumar Vemula X-Patchwork-Id: 45691 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B7DB91B3A4; Sat, 29 Sep 2018 14:02:25 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 5D2331B1F7 for ; Sat, 29 Sep 2018 14:02:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2018 05:02:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,319,1534834800"; d="scan'208";a="84423287" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2018 05:02:03 -0700 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w8TC22x6028711; Sat, 29 Sep 2018 13:02:02 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w8TC1mtI026096; Sat, 29 Sep 2018 13:01:48 +0100 Received: (from hvemulax@localhost) by wgcvswdev001.ir.intel.com with ? id w8TC1mns026092; Sat, 29 Sep 2018 13:01:48 +0100 From: Hari Kumar Vemula To: dev@dpdk.org Cc: bruce.richardson@intel.com, reshma.pattan@intel.com, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, Hari Kumar Vemula Date: Sat, 29 Sep 2018 13:00:58 +0100 Message-Id: <1538222461-25597-2-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH 1/4] driver/crypto: enable meson support for the aesni gcm X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added new meson.build files for aesni_gcm Exported dependency library path through meson_options.txt file Signed-off-by: Hari Kumar Vemula --- drivers/crypto/aesni_gcm/meson.build | 17 +++++++++++++++++ drivers/crypto/meson.build | 2 +- meson_options.txt | 2 ++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/aesni_gcm/meson.build diff --git a/drivers/crypto/aesni_gcm/meson.build b/drivers/crypto/aesni_gcm/meson.build new file mode 100644 index 000000000..a84c792c5 --- /dev/null +++ b/drivers/crypto/aesni_gcm/meson.build @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +path = get_option('lib_IPSec_MB') +lib_dir = path + '/lib' + +lib = cc.find_library('IPSec_MB', required: false) +if not lib.found() + build = false +else + ext_deps += lib +endif + +sources = files('aesni_gcm_pmd.c', 'aesni_gcm_pmd_ops.c') + +deps += ['bus_vdev'] + diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 6ed853b7a..7e14cbba0 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam', +drivers = ['aesni_gcm', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam', 'null', 'openssl', 'qat', 'scheduler', 'virtio'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps diff --git a/meson_options.txt b/meson_options.txt index d38ba56e2..8c75826c1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,3 +24,5 @@ option('use_hpet', type: 'boolean', value: false, description: 'use HPET timer in EAL') option('tests', type: 'boolean', value: true, description: 'build unit tests') +option('lib_IPSec_MB', type: 'string', value: '', + description: 'path to the IPSec_MB library installation directory') From patchwork Sat Sep 29 12:00:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Kumar Vemula X-Patchwork-Id: 45688 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A54E01B272; Sat, 29 Sep 2018 14:02:09 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3F6441B20B for ; Sat, 29 Sep 2018 14:02:08 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2018 05:02:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,319,1534834800"; d="scan'208";a="93165989" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 29 Sep 2018 05:02:05 -0700 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w8TC25Ip028717; Sat, 29 Sep 2018 13:02:05 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w8TC1pVC026112; Sat, 29 Sep 2018 13:01:51 +0100 Received: (from hvemulax@localhost) by wgcvswdev001.ir.intel.com with ? id w8TC1pNf026107; Sat, 29 Sep 2018 13:01:51 +0100 From: Hari Kumar Vemula To: dev@dpdk.org Cc: bruce.richardson@intel.com, reshma.pattan@intel.com, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, Hari Kumar Vemula Date: Sat, 29 Sep 2018 13:00:59 +0100 Message-Id: <1538222461-25597-3-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH 2/4] drivers/crypto: enable meson support for the aesni mb X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added new meson.build file for aesni_mb Exported dependency library path through meson_options.txt file Signed-off-by: Hari Kumar Vemula --- drivers/crypto/aesni_mb/meson.build | 16 ++++++++++++++++ drivers/crypto/meson.build | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/aesni_mb/meson.build diff --git a/drivers/crypto/aesni_mb/meson.build b/drivers/crypto/aesni_mb/meson.build new file mode 100644 index 000000000..000c7adb4 --- /dev/null +++ b/drivers/crypto/aesni_mb/meson.build @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +path = get_option('lib_IPSec_MB') +lib_dir = path + '/lib' + +lib = cc.find_library('IPSec_MB', required: false) +if not lib.found() + build = false +else + ext_deps += lib +endif + +sources = files('rte_aesni_mb_pmd.c', 'rte_aesni_mb_pmd_ops.c') + +deps += ['bus_vdev'] diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 7e14cbba0..ab68c2751 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['aesni_gcm', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam', +drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam', 'null', 'openssl', 'qat', 'scheduler', 'virtio'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps From patchwork Sat Sep 29 12:01:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Kumar Vemula X-Patchwork-Id: 45689 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97E5D1B202; Sat, 29 Sep 2018 14:02:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9F5661B216 for ; Sat, 29 Sep 2018 14:02:09 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2018 05:02:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,319,1534834800"; d="scan'208";a="93165996" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 29 Sep 2018 05:02:07 -0700 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w8TC27cl028720; Sat, 29 Sep 2018 13:02:07 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w8TC1rZF026126; Sat, 29 Sep 2018 13:01:53 +0100 Received: (from hvemulax@localhost) by wgcvswdev001.ir.intel.com with ? id w8TC1rHi026122; Sat, 29 Sep 2018 13:01:53 +0100 From: Hari Kumar Vemula To: dev@dpdk.org Cc: bruce.richardson@intel.com, reshma.pattan@intel.com, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, Hari Kumar Vemula Date: Sat, 29 Sep 2018 13:01:00 +0100 Message-Id: <1538222461-25597-4-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH 3/4] drivers/crypto: enable meson support for the kasumi X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added new meson.build file for KASUMI Exported dependency library path through meson_options.txt file Signed-off-by: Hari Kumar Vemula --- drivers/crypto/kasumi/meson.build | 18 ++++++++++++++++++ drivers/crypto/meson.build | 2 +- meson_options.txt | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/kasumi/meson.build diff --git a/drivers/crypto/kasumi/meson.build b/drivers/crypto/kasumi/meson.build new file mode 100644 index 000000000..b65de65cc --- /dev/null +++ b/drivers/crypto/kasumi/meson.build @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +path = get_option('libsso_kasumi_dir') +lib_dir = path + '/build' +inc_dir = path + '/include' + +lib = cc.find_library('libsso_kasumi', dirs: lib_dir, required: false) +if not lib.found() + build = false +else + ext_deps += lib + includes += include_directories(inc_dir) +endif + +sources = files('rte_kasumi_pmd.c', 'rte_kasumi_pmd_ops.c') + +deps += ['bus_vdev'] diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index ab68c2751..4ed87c367 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'mvsam', +drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'kasumi', 'mvsam', 'null', 'openssl', 'qat', 'scheduler', 'virtio'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps diff --git a/meson_options.txt b/meson_options.txt index 8c75826c1..782213477 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -26,3 +26,5 @@ option('tests', type: 'boolean', value: true, description: 'build unit tests') option('lib_IPSec_MB', type: 'string', value: '', description: 'path to the IPSec_MB library installation directory') +option('libsso_kasumi_dir', type: 'string', value: '', + description: 'path to the KASUMI library installation directory') From patchwork Sat Sep 29 12:01:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hari Kumar Vemula X-Patchwork-Id: 45690 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C495A1B2AB; Sat, 29 Sep 2018 14:02:21 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8F4EE1B1F7 for ; Sat, 29 Sep 2018 14:02:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2018 05:02:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,319,1534834800"; d="scan'208";a="84423292" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2018 05:02:10 -0700 Received: from wgcvswdev001.ir.intel.com (wgcvswdev001.ir.intel.com [10.102.246.100]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w8TC29cF028723; Sat, 29 Sep 2018 13:02:09 +0100 Received: from wgcvswdev001.ir.intel.com (localhost [127.0.0.1]) by wgcvswdev001.ir.intel.com with ESMTP id w8TC1ufs026141; Sat, 29 Sep 2018 13:01:56 +0100 Received: (from hvemulax@localhost) by wgcvswdev001.ir.intel.com with ? id w8TC1uAe026137; Sat, 29 Sep 2018 13:01:56 +0100 From: Hari Kumar Vemula To: dev@dpdk.org Cc: bruce.richardson@intel.com, reshma.pattan@intel.com, declan.doherty@intel.com, pablo.de.lara.guarch@intel.com, Hari Kumar Vemula Date: Sat, 29 Sep 2018 13:01:01 +0100 Message-Id: <1538222461-25597-5-git-send-email-hari.kumarx.vemula@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> References: <1538222461-25597-1-git-send-email-hari.kumarx.vemula@intel.com> Subject: [dpdk-dev] [PATCH 4/4] drivers/crypto: enable meson support for the zuc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added new meson.build file for ZUC Exported dependency library path through meson_options.txt file Signed-off-by: Hari Kumar Vemula --- drivers/crypto/meson.build | 2 +- drivers/crypto/zuc/meson.build | 18 ++++++++++++++++++ meson_options.txt | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/zuc/meson.build diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 4ed87c367..b45049ce3 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -2,7 +2,7 @@ # Copyright(c) 2017 Intel Corporation drivers = ['aesni_gcm', 'aesni_mb', 'ccp', 'dpaa_sec', 'dpaa2_sec', 'kasumi', 'mvsam', - 'null', 'openssl', 'qat', 'scheduler', 'virtio'] + 'null', 'openssl', 'qat', 'scheduler', 'virtio', 'zuc'] std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' diff --git a/drivers/crypto/zuc/meson.build b/drivers/crypto/zuc/meson.build new file mode 100644 index 000000000..4fa5d9b8c --- /dev/null +++ b/drivers/crypto/zuc/meson.build @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Intel Corporation + +path = get_option('libsso_zuc_dir') +lib_dir = path + '/build' +inc_dir = path + '/include' + +lib = cc.find_library('libsso_zuc', dirs: lib_dir, required: false) +if not lib.found() + build = false +else + ext_deps += lib + includes += include_directories(inc_dir) +endif + +sources = files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c') + +deps += ['bus_vdev'] diff --git a/meson_options.txt b/meson_options.txt index 782213477..842b6c6de 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -28,3 +28,5 @@ option('lib_IPSec_MB', type: 'string', value: '', description: 'path to the IPSec_MB library installation directory') option('libsso_kasumi_dir', type: 'string', value: '', description: 'path to the KASUMI library installation directory') +option('libsso_zuc_dir', type: 'string', value: '', + description: 'path to the ZUC library installation directory')