From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2ED002C2F for ; Tue, 5 Sep 2017 12:19:48 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2017 03:19:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,479,1498546800"; d="scan'208";a="125666995" Received: from silpixa00399464.ir.intel.com (HELO silpixa00399464.ger.corp.intel.com) ([10.237.222.157]) by orsmga004.jf.intel.com with ESMTP; 05 Sep 2017 03:19:46 -0700 From: Pablo de Lara To: declan.doherty@intel.com, roy.fan.zhang@intel.com, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pablo de Lara Date: Tue, 5 Sep 2017 03:19:59 +0100 Message-Id: <20170905022007.55749-1-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170818072103.1416-1-pablo.de.lara.guarch@intel.com> References: <20170818072103.1416-1-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2 0/8] Remove temporary digest allocation 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: , X-List-Received-Date: Tue, 05 Sep 2017 10:19:49 -0000 When performing authentication verification, some crypto PMDs require extra memory where the generated digest can be placed. Currently, these PMDs are getting the memory from the end of the source mbuf, which might fail if there is not enough tailroom. To avoid this situation, some memory is allocated in each queue pair of the device, to store temporarily these digests. Changes in v2: - Removed incorrect indirection when getting the memory to store the generated digest (i.e. removed "&" in &temp_digest) Pablo de Lara (8): crypto/aesni_gcm: do not append digest crypto/armv8: do not append digest crypto/openssl: do not append digest crypto/kasumi: do not append digest crypto/snow3g: do not append digest crypto/zuc: do not append digest crypto/aesni_mb: do not append digest test/crypto: do not allocate extra memory for digest drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 31 ++++--------------- drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h | 7 +++++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 36 +++++++--------------- drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 5 +++ drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h | 12 +++++++- drivers/crypto/armv8/rte_armv8_pmd.c | 14 +++------ drivers/crypto/armv8/rte_armv8_pmd_private.h | 8 +++++ drivers/crypto/kasumi/rte_kasumi_pmd.c | 22 +++++-------- drivers/crypto/kasumi/rte_kasumi_pmd_private.h | 7 +++++ drivers/crypto/openssl/rte_openssl_pmd.c | 19 +++++------- drivers/crypto/openssl/rte_openssl_pmd_private.h | 7 +++++ drivers/crypto/snow3g/rte_snow3g_pmd.c | 22 +++++-------- drivers/crypto/snow3g/rte_snow3g_pmd_private.h | 7 +++++ drivers/crypto/zuc/rte_zuc_pmd.c | 16 +++------- drivers/crypto/zuc/rte_zuc_pmd_private.h | 7 +++++ test/test/test_cryptodev_blockcipher.c | 29 ++--------------- 16 files changed, 112 insertions(+), 137 deletions(-) -- 2.9.4