[v3,0/4] use architecure independent macros
Message ID | 20181219201609.37934-1-roy.fan.zhang@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 932F41B59D; Wed, 19 Dec 2018 21:16:13 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 949941B561 for <dev@dpdk.org>; Wed, 19 Dec 2018 21:16:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2018 12:16:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,374,1539673200"; d="scan'208";a="127435107" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.54]) by fmsmga002.fm.intel.com with ESMTP; 19 Dec 2018 12:16:09 -0800 From: Fan Zhang <roy.fan.zhang@intel.com> To: dev@dpdk.org Cc: akhil.goyal@nxp.com, thomas@monjalon.net Date: Wed, 19 Dec 2018 20:16:05 +0000 Message-Id: <20181219201609.37934-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20181211122917.18713-1-roy.fan.zhang@intel.com> References: <20181211122917.18713-1-roy.fan.zhang@intel.com> Subject: [dpdk-dev] [PATCH v3 0/4] use architecure independent macros X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Fan Zhang
Dec. 19, 2018, 8:16 p.m. UTC
This patch updates the aesni_mb to use IMB_* arch independent macros to
reduce the code size and future maintaining effort.
In intel-ipsec-mb library 0.52 all supported algorithms now have the IMB_*
arch independent macros enabled. The macros help reducing the application's
code size and remove the burden of maintaining the support to different
architectures such as SSE and AVX*, etc.
This patch adds this support into AESNI-MB PMD. Meanwhile to keep
supporting the older version of intel-ipsec-mb library, the existing
rte_aesni_mb_pmd*.c are renamed to rte_aesni_mb_pmd*_compat.c and the
compiler will check the version number in /usr/include/inte-ipsec-mb.h and
decides which files to be compiled. For intel-ipsec-mb library 0.52 the
rte_aesni_mb_pmd*.c will be compiled. For the older version
rte_aesni_mb_pmd*_compat.c will be compiled.
It is planned to change the minimum intel-ipsec-mb support version to 0.52
in DPDK 19.05 release. By then all code intended for supporting older
version will be removed, including rte_aesni_mb_pmd*_compat.c.
Acked-by: Damian Nowak <damianx.nowak@intel.com>
v3:
- patch split.
- fixed meson build bug.
- updated commit message.
- updated documentation.
v2:
- making the PMD compatible with both new intel-ipsec-mb version 0.52 and older
- fixed a bug
Fan Zhang (4):
crypto/aesni_mb: rename files to compatible
crypto/aesni_mb: use architecture independent macros
doc: update library support version
doc: update deprecation notice
doc/guides/cryptodevs/aesni_mb.rst | 4 +-
doc/guides/rel_notes/deprecation.rst | 3 +
drivers/crypto/aesni_mb/Makefile | 26 +-
drivers/crypto/aesni_mb/meson.build | 18 +-
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 190 ++-
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_compat.c | 1239 ++++++++++++++++++++
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 86 +-
.../crypto/aesni_mb/rte_aesni_mb_pmd_ops_compat.c | 719 ++++++++++++
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h | 52 +-
9 files changed, 2166 insertions(+), 171 deletions(-)
create mode 100644 drivers/crypto/aesni_mb/rte_aesni_mb_pmd_compat.c
create mode 100644 drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops_compat.c