* [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation
@ 2021-02-04 9:06 Matan Azrad
2021-02-04 13:54 ` Slava Ovsiienko
0 siblings, 1 reply; 3+ messages in thread
From: Matan Azrad @ 2021-02-04 9:06 UTC (permalink / raw)
To: dev; +Cc: akhil.goyal
When ASSERT is enabled for compilation, the 2 usages of assert mechanism
in the driver are failed due to typos.
Fix the typos.
Fixes: f8c97babc9f4 ("compress/mlx5: add data-path functions")
Fixes: 37862dafcbed ("compress/mlx5: support 32-bit systems")
Reported-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Signed-off-by: Matan Azrad <matan@nvidia.com>
Tested-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
drivers/compress/mlx5/mlx5_compress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c
index b47821a..46255ab 100644
--- a/drivers/compress/mlx5/mlx5_compress.c
+++ b/drivers/compress/mlx5/mlx5_compress.c
@@ -614,7 +614,7 @@ struct mlx5_compress_qp {
op->consumed = op->src.length;
op->produced = rte_be_to_cpu_32(cqe->byte_cnt);
MLX5_ASSERT(cqe->byte_cnt ==
- qp->opaque_buf[idx].scattered_length);
+ opaq[idx].scattered_length);
switch (xform->csum_type) {
case RTE_COMP_CHECKSUM_CRC32:
op->output_chksum = (uint64_t)rte_be_to_cpu_32
@@ -731,7 +731,7 @@ struct mlx5_compress_qp {
return -1;
}
priv->uar_addr = mlx5_os_get_devx_uar_reg_addr(priv->uar);
- MLX5_ASSERT(qp->uar_addr);
+ MLX5_ASSERT(priv->uar_addr);
#ifndef RTE_ARCH_64
rte_spinlock_init(&priv->uar32_sl);
#endif /* RTE_ARCH_64 */
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation
2021-02-04 9:06 [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation Matan Azrad
@ 2021-02-04 13:54 ` Slava Ovsiienko
2021-02-04 18:09 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Slava Ovsiienko @ 2021-02-04 13:54 UTC (permalink / raw)
To: Matan Azrad, dev; +Cc: akhil.goyal
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Matan Azrad
> Sent: Thursday, February 4, 2021 11:06
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com
> Subject: [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation
>
> When ASSERT is enabled for compilation, the 2 usages of assert mechanism
> in the driver are failed due to typos.
>
> Fix the typos.
>
> Fixes: f8c97babc9f4 ("compress/mlx5: add data-path functions")
> Fixes: 37862dafcbed ("compress/mlx5: support 32-bit systems")
>
> Reported-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> Signed-off-by: Matan Azrad <matan@nvidia.com>
> Tested-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation
2021-02-04 13:54 ` Slava Ovsiienko
@ 2021-02-04 18:09 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2021-02-04 18:09 UTC (permalink / raw)
To: Slava Ovsiienko, Matan Azrad, dev
> > When ASSERT is enabled for compilation, the 2 usages of assert mechanism
> > in the driver are failed due to typos.
> >
> > Fix the typos.
> >
> > Fixes: f8c97babc9f4 ("compress/mlx5: add data-path functions")
> > Fixes: 37862dafcbed ("compress/mlx5: support 32-bit systems")
> >
> > Reported-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> > Signed-off-by: Matan Azrad <matan@nvidia.com>
> > Tested-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-04 18:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 9:06 [dpdk-dev] [PATCH] compress/mlx5: fix assert compilation Matan Azrad
2021-02-04 13:54 ` Slava Ovsiienko
2021-02-04 18:09 ` Akhil Goyal
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).