]> git.droids-corp.org - dpdk.git/commitdiff
common/mlx5: optimize debug log
authorSean Zhang <xiazhang@nvidia.com>
Mon, 11 Oct 2021 08:46:03 +0000 (11:46 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 26 Oct 2021 15:16:17 +0000 (17:16 +0200)
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")
Cc: stable@dpdk.org
Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common_utils.c

index fcc81f05c6d03d6191cbec8521234264cb1bd2b5..775fabd478b98846ac2247d27ec45f78b0185163 100644 (file)
@@ -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;
 }