From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E1D3A0547; Mon, 24 May 2021 18:46:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B34C4003E; Mon, 24 May 2021 18:46:35 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id A00424003C for ; Mon, 24 May 2021 18:46:34 +0200 (CEST) IronPort-SDR: pJ9FJ1+NdanM2zDn7DBMWG+umgLh6ugnED7CbWlcdS6Bext+VLw/xVxBdjEiHoxd27BFZ63dgS 0Ia7Vz56YX/w== X-IronPort-AV: E=McAfee;i="6200,9189,9993"; a="263186131" X-IronPort-AV: E=Sophos;i="5.82,325,1613462400"; d="scan'208";a="263186131" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 09:46:31 -0700 IronPort-SDR: F6u57bAeCU7z0f5PIA6dL61GUPddsL9++Fvsi1Iz9CciOPs3rdWCzmuU7DqaJXBx2Cy6pU++zV YsKa70fplrXg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,325,1613462400"; d="scan'208";a="463785676" Received: from silpixa00400272.ir.intel.com (HELO silpixa00400272.ger.corp.intel.com) ([10.237.223.111]) by fmsmga004.fm.intel.com with ESMTP; 24 May 2021 09:46:29 -0700 From: Kai Ji To: dev@dpdk.org Cc: Kai Ji , pablo.de.lara.guarch@intel.com Date: Mon, 24 May 2021 17:46:27 +0100 Message-Id: <20210524164627.15204-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210520150711.28196-1-kai.ji@intel.com> References: <20210520150711.28196-1-kai.ji@intel.com> Subject: [dpdk-dev] [dpdk-dev v2] test/crypto-perf: fix crypto perf out-of-place mempool alloc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Add in missing rte_mbuf size in mempool allocation for out-of-place op. Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") Cc: pablo.de.lara.guarch@intel.com Signed-off-by: Kai Ji Acked-by: Fan Zhang Acked-by: Pablo de Lara --- v2: -- commit message update app/test-crypto-perf/cperf_test_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 058e0ba564..12925c7f22 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -194,7 +194,7 @@ cperf_alloc_common_memory(const struct cperf_options *options, (mbuf_size * segments_nb); params.dst_buf_offset = *dst_buf_offset; /* Destination buffer will be one segment only */ - obj_size += max_size; + obj_size += max_size + sizeof(struct rte_mbuf); } *pool = rte_mempool_create_empty(pool_name, -- 2.17.1