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 EC259A0A0A; Thu, 20 May 2021 17:07:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D628A40143; Thu, 20 May 2021 17:07:37 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D92EC40041 for ; Thu, 20 May 2021 17:07:35 +0200 (CEST) IronPort-SDR: 80BskQOfoQMfGiOC4tw1bwQogfwxXnWR6nEq+bm64nHsqZcOQRXlPf/YSzrcu2BeJdbQ4Ihd2W mGAzLN5PUczw== X-IronPort-AV: E=McAfee;i="6200,9189,9989"; a="201291061" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="201291061" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2021 08:07:15 -0700 IronPort-SDR: /CXHT1LCOMBkXxIp5LGyZUxJ2pqCKtjGgV2jD3qLaqaP4TFHao//coo2xN/dfeL43l3Smy0gaj NL4EJ/fI49yw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="440541967" Received: from silpixa00400272.ir.intel.com (HELO silpixa00400272.ger.corp.intel.com) ([10.237.223.111]) by fmsmga008.fm.intel.com with ESMTP; 20 May 2021 08:07:13 -0700 From: Kai Ji To: dev@dpdk.org Cc: roy.fan.zhang@intel.com, Kai Ji , pablo.de.lara.guarch@intel.com Date: Thu, 20 May 2021 16:07:11 +0100 Message-Id: <20210520150711.28196-1-kai.ji@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [dpdk-dev v1] cperf: 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 --- 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 -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.