Skip to contentSkip to conversation

common/mlx5: optimize debug log

PATCH In review Sean Zhang 2 participants 2 messages Oct 11, 2021 – Oct 26, 2021

lore
Share & tools
lore

Sean Zhang

author
#0 lore raw

PATCH 1/1 common/mlx5: optimize debug log

Remove debug log inside of mlx5_list_init to avoid flooding debug messages when creating hash list with large actual size.

Fixes 9c373c524bae ("common/mlx5: move list utility from net driver")
---
 drivers/common/mlx5/mlx5_common_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/common/mlx5/mlx5_common_utils.c +1 -1
index fcc81f05c6..775fabd478 100644
@@ -23,7 +23,6 @@ mlx5_list_init(struct mlx5_list_inconst *l_inconst,
 		l_inconst->cache[MLX5_LIST_GLOBAL] = gc;
 		LIST_INIT(&l_inconst->cache[MLX5_LIST_GLOBAL]->h);
 	}
-	DRV_LOG(DEBUG, "mlx5 list %s initialized.", l_const->name);
 	return 0;
 }
 
@@ -66,6 +65,7 @@ mlx5_list_create(const char *name, void *ctx, bool lcores_share,
 		mlx5_free(list);
 		return NULL;
 	}
+	DRV_LOG(DEBUG, "mlx5 list %s was created.", name);
 	return list;
 }
 
Signature · 1 line
2.33.0
#1 lore raw

Hi,

Quoted 10 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Sean Zhang
Sent: Monday, October 11, 2021 11:46 AM
To: [email protected]
Cc: [email protected]; Matan Azrad <[email protected]>
Subject: [dpdk-dev] [PATCH] common/mlx5: optimize debug log

Remove debug log inside of mlx5_list_init to avoid flooding debug messages when creating hash list with large actual size.

Quoted 6 lines
Fixes 9c373c524bae ("common/mlx5: move list utility from net driver")

---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh