From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id B3406374C for ; Thu, 6 Apr 2017 16:16:43 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 78D64298E3; Thu, 6 Apr 2017 16:16:38 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Cc: helin.zhang@intel.com, jingjing.wu@intel.com, bruce.richardson@intel.com, ferruh.yigit@intel.com Date: Thu, 6 Apr 2017 16:16:55 +0200 Message-Id: <20170406141655.15097-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 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: , X-List-Received-Date: Thu, 06 Apr 2017 14:16:43 -0000 Since "net/i40e: use dynamic log type for control logs", the i40e driver is more verbose by default, which could result in testpmd being flooded by log messages in some conditions: Checking link statuses... i40e_dev_handle_aq_msg(): Request 2561 is not supported yet i40e_dev_handle_aq_msg(): Request 2561 is not supported yet i40e_dev_handle_aq_msg(): Request 2561 is not supported yet i40e_dev_handle_aq_msg(): Request 2561 is not supported yet Port 0 Link Up - speed 40000 Mbps - full-duplex Port 1 Link Up - speed 40000 Mbps - full-duplex Done testpmd> i40e_dev_handle_aq_msg(): Request 4097 is not supported yet i40e_dev_handle_aq_msg(): Request 4097 is not supported yet i40e_dev_handle_aq_msg(): Request 4097 is not supported yet Fix this by disabling the dynamic logs by default. It is still possible to enable them at runtime. Fixes: c143e5a3d9e1 ("net/i40e: use dynamic log type for control logs") Signed-off-by: Olivier Matz --- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index cb8bf2b49..86f5669f0 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -12456,8 +12456,8 @@ i40e_init_log(void) { i40e_logtype_init = rte_log_register("pmd.i40e.init"); if (i40e_logtype_init >= 0) - rte_log_set_level(i40e_logtype_init, RTE_LOG_NOTICE); + rte_log_set_level(i40e_logtype_init, RTE_LOG_EMERG); i40e_logtype_driver = rte_log_register("pmd.i40e.driver"); if (i40e_logtype_driver >= 0) - rte_log_set_level(i40e_logtype_driver, RTE_LOG_NOTICE); + rte_log_set_level(i40e_logtype_driver, RTE_LOG_EMERG); } -- 2.11.0