From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8D3D1A04F2; Mon, 8 Jun 2020 15:15:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEB422BB9; Mon, 8 Jun 2020 15:15:07 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 077A7293C; Mon, 8 Jun 2020 15:15:06 +0200 (CEST) IronPort-SDR: D6PHedpFIL3hPh/Rlt1nBMVRRjuX19ukgvf6dqbbit5GA3NXALBpCNnak9YRY5vv3dxuwE0T25 Z3hvA1n2LtGQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2020 06:15:05 -0700 IronPort-SDR: ogH/fbv+r3LwPQlI0dPErSgECgtMvOvJnlyMARIDVuH2KOuSg3M1l95wPoV2O1ToCdkkvRhNNH zJos0hcxUKNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,487,1583222400"; d="scan'208";a="349165754" Received: from unknown (HELO adamdybx-MOBL.ger.corp.intel.com) ([10.104.113.106]) by orsmga001.jf.intel.com with ESMTP; 08 Jun 2020 06:15:04 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski , stable@dpdk.org Date: Mon, 8 Jun 2020 15:15:01 +0200 Message-Id: <20200608131503.4003-1-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/3] test/crypto: fix asym session mempool creation 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" This patch fixes the element size of the mempool used for allocating asym crypto sessions and their private data. Fixes: 2c6dab9cd93d ("test/crypto: add RSA and Mod tests") Cc: stable@dpdk.org Signed-off-by: Adam Dybkowski --- app/test/test_cryptodev_asym.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index b8e050048..dc62ed7bf 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -935,8 +935,9 @@ testsuite_setup(void) } /* setup asym session pool */ - unsigned int session_size = - rte_cryptodev_asym_get_private_session_size(dev_id); + unsigned int session_size = RTE_MAX( + rte_cryptodev_asym_get_private_session_size(dev_id), + rte_cryptodev_asym_get_header_session_size()); /* * Create mempool with TEST_NUM_SESSIONS * 2, * to include the session headers -- 2.25.1