From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Hernan Vargas <hernan.vargas@intel.com>,
dev@dpdk.org, gakhil@marvell.com, trix@redhat.com
Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, stable@dpdk.org
Subject: Re: [PATCH v1 2/9] test/bbdev: fix MLD output size computation
Date: Wed, 12 Jun 2024 11:25:40 +0200 [thread overview]
Message-ID: <0e06cc74-3b1c-45bc-9456-ce717e90de87@redhat.com> (raw)
In-Reply-To: <20240422190800.123027-3-hernan.vargas@intel.com>
On 4/22/24 21:07, Hernan Vargas wrote:
> For perf tests, the operation size for the MLD-TS was incorrect.
> Fixed so that the performance numbers are correct.
> Largely cosmetic only.
>
> Fixes: 95f192a40e35 ("test/bbdev: add MLD cases")
> Cc: stable@dpdk.org
>
> Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
> index efd046984d58..9ed0c4648d24 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -2896,8 +2896,14 @@ calc_fft_size(struct rte_bbdev_fft_op *op)
> static uint32_t
> calc_mldts_size(struct rte_bbdev_mldts_op *op)
> {
> - uint32_t output_size;
> - output_size = op->mldts.num_layers * op->mldts.num_rbs * op->mldts.c_rep;
> + uint32_t output_size = 0;
> + uint16_t i;
> +
> + for (i = 0; i < op->mldts.num_layers; i++)
> + output_size += op->mldts.q_m[i];
> +
> + output_size *= 12 * 8 * op->mldts.num_rbs * (op->mldts.c_rep + 1);
Could you please explain what these numbers (12, 8) relate to?
Maybe some defines are needed so that it is self-explanatory.
Thanks,
Maxime
> +
> return output_size;
> }
>
next prev parent reply other threads:[~2024-06-12 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240422190800.123027-1-hernan.vargas@intel.com>
2024-04-22 19:07 ` [PATCH v1 1/9] test/bbdev: fix TB logic Hernan Vargas
2024-06-12 9:18 ` Maxime Coquelin
2024-04-22 19:07 ` [PATCH v1 2/9] test/bbdev: fix MLD output size computation Hernan Vargas
2024-06-12 9:25 ` Maxime Coquelin [this message]
2024-04-22 19:07 ` [PATCH v1 3/9] test/bbdev: fix interrupt tests Hernan Vargas
2024-06-12 9:27 ` Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e06cc74-3b1c-45bc-9456-ce717e90de87@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=hernan.vargas@intel.com \
--cc=nicolas.chautru@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
--cc=trix@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).