[dpdk-stable] [PATCH 19.11] net/mlx5: fix debug configuration build issue

Viacheslav Ovsiienko viacheslavo at nvidia.com
Wed Dec 16 16:30:48 CET 2020


If debugging options to generate assert are configured there was
build failure due to wrong variable naming pushed from backported
patch (see "Fixes" tag).

This fix is for 19.11 LTS only, issue origin is in 19.11 LTS only,
not in Upstream.

Fixes: ce4c764761d0 ("net/mlx5: fix port shared data reference count")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
---
 drivers/net/mlx5/mlx5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 36e6937..4307005 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1046,7 +1046,7 @@ struct mlx5_flow_id_pool *
 {
 	struct mlx5_ibv_shared *sh = priv->sh;
 
-	assert(sh && sh->dv_refcnt);
+	assert(sh && sh->refcnt);
 	if (sh->refcnt > 1)
 		return;
 #ifdef HAVE_MLX5DV_DR
-- 
1.8.3.1



More information about the stable mailing list