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 E7F7C41DB8; Thu, 2 Mar 2023 21:23:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0A0D42D75; Thu, 2 Mar 2023 21:22:16 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id E29CC42D12 for ; Thu, 2 Mar 2023 21:22:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677788527; x=1709324527; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vhG7e2KZdohe+Y9YfQZLKcoO+EBphDpN6L8bY398obQ=; b=UhOTYaqY9FS7DooHDgsrsSI001TuNGAel2HlsWzs975wanPCTb+j6AYM G86rr7bdMxuqGaQKaYV+bR3pZeo0mJDV5SJ0SNUtegAOgr3+XSuf5CHCS HIid3prrJdfx9tE4zX1kwLXlGj5mrQV0XNOAo/53Bu1AS6Q+YlEenm29x HKVlmR+VP7oYgPCyv0IEJXAXZSHHI5DKegAb1Yp6O/UQL5VctGOl6u0/p o0bpnMX8rylh5sydmwff9lUDdb6r5gzNLrSHMQ+1O9o2D0Kng2tXOufJ6 PbrK4o6wydqHuSGfJB9Ty7+mPt+GH1Jw6N+qRBNwUI7B3Wy93fqAo0JAN w==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="334871231" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="334871231" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 12:22:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="705398136" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="705398136" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:22:05 -0800 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v3 15/17] test/bbdev: use mbuf reset function Date: Thu, 2 Mar 2023 12:22:09 -0800 Message-Id: <20230302202211.170017-16-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230302202211.170017-1-hernan.vargas@intel.com> References: <20230302202211.170017-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Use mbuf_reset function for code consistency. No functional impact. Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev_perf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index da5c3a4bc9a7..b92254519fdf 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -3185,11 +3185,11 @@ throughput_intr_lcore_ldpc_dec(void *arg) for (j = 0; j < TEST_REPETITIONS; ++j) { for (i = 0; i < num_to_process; ++i) { if (!loopback) - rte_pktmbuf_reset(ops[i]->ldpc_dec.hard_output.data); + mbuf_reset(ops[i]->ldpc_dec.hard_output.data); if (hc_out || loopback) mbuf_reset(ops[i]->ldpc_dec.harq_combined_output.data); if (ops[i]->ldpc_dec.soft_output.data != NULL) - rte_pktmbuf_reset(ops[i]->ldpc_dec.soft_output.data); + mbuf_reset(ops[i]->ldpc_dec.soft_output.data); } tp->start_time = rte_rdtsc_precise(); @@ -3279,9 +3279,9 @@ throughput_intr_lcore_dec(void *arg) for (j = 0; j < TEST_REPETITIONS; ++j) { for (i = 0; i < num_to_process; ++i) { - rte_pktmbuf_reset(ops[i]->turbo_dec.hard_output.data); + mbuf_reset(ops[i]->turbo_dec.hard_output.data); if (ops[i]->turbo_dec.soft_output.data != NULL) - rte_pktmbuf_reset(ops[i]->turbo_dec.soft_output.data); + mbuf_reset(ops[i]->turbo_dec.soft_output.data); } tp->start_time = rte_rdtsc_precise(); @@ -3368,7 +3368,7 @@ throughput_intr_lcore_enc(void *arg) for (j = 0; j < TEST_REPETITIONS; ++j) { for (i = 0; i < num_to_process; ++i) - rte_pktmbuf_reset(ops[i]->turbo_enc.output.data); + mbuf_reset(ops[i]->turbo_enc.output.data); tp->start_time = rte_rdtsc_precise(); for (enqueued = 0; enqueued < num_to_process;) { @@ -3456,7 +3456,7 @@ throughput_intr_lcore_ldpc_enc(void *arg) for (j = 0; j < TEST_REPETITIONS; ++j) { for (i = 0; i < num_to_process; ++i) - rte_pktmbuf_reset(ops[i]->turbo_enc.output.data); + mbuf_reset(ops[i]->turbo_enc.output.data); tp->start_time = rte_rdtsc_precise(); for (enqueued = 0; enqueued < num_to_process;) { @@ -3544,7 +3544,7 @@ throughput_intr_lcore_fft(void *arg) for (j = 0; j < TEST_REPETITIONS; ++j) { for (i = 0; i < num_to_process; ++i) - rte_pktmbuf_reset(ops[i]->fft.base_output.data); + mbuf_reset(ops[i]->fft.base_output.data); tp->start_time = rte_rdtsc_precise(); for (enqueued = 0; enqueued < num_to_process;) { -- 2.37.1