From patchwork Mon Nov 23 15:56:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matan Azrad X-Patchwork-Id: 84472 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B4979A04B1; Mon, 23 Nov 2020 16:56:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DCDDCC8E4; Mon, 23 Nov 2020 16:56:48 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id DD219C8C6 for ; Mon, 23 Nov 2020 16:56:47 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from matan@nvidia.com) with SMTP; 23 Nov 2020 17:56:45 +0200 Received: from nvidia.com (pegasus25.mtr.labs.mlnx [10.210.16.10]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0ANFuiVR004923; Mon, 23 Nov 2020 17:56:44 +0200 From: Matan Azrad To: Viacheslav Ovsiienko Cc: dev@dpdk.org, Thomas Monjalon Date: Mon, 23 Nov 2020 15:56:42 +0000 Message-Id: <1606147002-451248-1-git-send-email-matan@nvidia.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] net/mlx5: reduce log level in hlist registration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In mlx5 internal hash list tool, there is a log print when an entry allocation is failed: Can't allocate hash list entry. Some initialization checks triggers hash list registration in order to check some capabilities. Here, the failure in registration doesn't lead to failure in the initialization flow, that is why the log level can be lower. Move the entry allocation failure log to debug level. Signed-off-by: Matan Azrad Reviewed-by: Asaf Penso Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_utils.c b/drivers/net/mlx5/mlx5_utils.c index 9889437..848d108 100644 --- a/drivers/net/mlx5/mlx5_utils.c +++ b/drivers/net/mlx5/mlx5_utils.c @@ -156,7 +156,7 @@ struct mlx5_hlist_entry* entry = h->cb_create(h, key, ctx); if (!entry) { rte_errno = ENOMEM; - DRV_LOG(ERR, "Can't allocate hash list %s entry.", h->name); + DRV_LOG(DEBUG, "Can't allocate hash list %s entry.", h->name); goto done; } entry->key = key;