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 D33F9A04F2 for ; Mon, 8 Jun 2020 15:13:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 983932B93; Mon, 8 Jun 2020 15:13:10 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A25952B93 for ; Mon, 8 Jun 2020 15:13:09 +0200 (CEST) IronPort-SDR: VwyZHRybTlehmxyJWVLsZLGE1rangkAyjoc1Zua3YwIRUwDnmkjgwwYYes7IfumIbjbOFyD+2Z jM0DxSh2iJ4w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2020 06:13:08 -0700 IronPort-SDR: uCDiAmKAw7KoFTln6pDDN2kc9bgOqRA2OomxfuO8USRCQV5LEQyVDYmvJwxcllRF6f3oBvysr9 N7tMl4Mfa5ag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,487,1583222400"; d="scan'208";a="305817448" Received: from unknown (HELO adamdybx-MOBL.ger.corp.intel.com) ([10.104.113.106]) by fmsmga002.fm.intel.com with ESMTP; 08 Jun 2020 06:13:07 -0700 From: Adam Dybkowski To: adamx.dybkowski@intel.com Cc: stable@dpdk.org Date: Mon, 8 Jun 2020 15:13:04 +0200 Message-Id: <20200608131306.3953-1-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 1/3] test/crypto: fix asym session mempool creation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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