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 B6B1041CA8; Wed, 15 Feb 2023 18:14:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4F6642D75; Wed, 15 Feb 2023 18:13:17 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B62B842D17 for ; Wed, 15 Feb 2023 18:13:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676481184; x=1708017184; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U4QNzQmMedDIBllycgd/+PJPy0EKZtruLrdQhLiRPlA=; b=UuS2w2pLB81GTtzEM8LFKSatj6luF+DuRh6qgjayq+I92f5cK3z2H4JF 0mxSx/X8KF+4uT4XqSRqhimrJIIyAA+rQ1giThG9Szhru0ah8FbS6fYPJ 9PP8aYKaaUA/dKVivPkGXv6tNB0uGqzGhs9ThT36XxR5WXUWaDHFYbzzl Fa2xX6I69mfeLSIzFIYMJp667DrujSsmrDCcP0wb8aYUKhY4roIytQkp4 YxTUeAEKuQoMKHI3cs3lxIAH8DJgR+Jlm0FWhRC6JJSC8KzlY/zsED3fH QCJzpjnaiwulBb4tlpwullfX6QNFreQnoku11t40Y7nOhjnHkLjMA+SW3 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="332789843" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="332789843" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 09:10:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="758489690" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="758489690" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:10:01 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v2 14/16] test/bbdev: use mbuf reset function Date: Wed, 15 Feb 2023 09:09:47 -0800 Message-Id: <20230215170949.60569-15-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230215170949.60569-1-hernan.vargas@intel.com> References: <20230215170949.60569-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 --- 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 5259404ff6..535b9d73dd 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -3173,11 +3173,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(); @@ -3267,9 +3267,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(); @@ -3356,7 +3356,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;) { @@ -3444,7 +3444,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;) { @@ -3532,7 +3532,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