From patchwork Thu Apr 6 14:31:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Helin" X-Patchwork-Id: 23300 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id F0F232C6B; Thu, 6 Apr 2017 16:31:29 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 759A82C5 for ; Thu, 6 Apr 2017 16:31:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491489088; x=1523025088; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=wRiEer+jDDKh+0HVTLul7KNcFRtgeDyMbXZoZNhFG8M=; b=IC+VfT98LGfMiXrzJfEbpK0bq2ShqEzPaYfaJfzgkOP2RDlOJvk8y4bY 6HRkUxiGcTMY2deUO4f+lzDqYusbzg==; Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2017 07:31:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.37,160,1488873600"; d="scan'208"; a="1131916705" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 06 Apr 2017 07:31:27 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 6 Apr 2017 07:31:27 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.117]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.224]) with mapi id 14.03.0319.002; Thu, 6 Apr 2017 22:31:24 +0800 From: "Zhang, Helin" To: Olivier Matz , "dev@dpdk.org" CC: "Wu, Jingjing" , "Richardson, Bruce" , "Yigit, Ferruh" Thread-Topic: [PATCH] net/i40e: disable init and driver logs by default Thread-Index: AQHSruCPWufzeZhN4kOl/x1F+f4hRaG4ZxDg Date: Thu, 6 Apr 2017 14:31:23 +0000 Message-ID: References: <20170406141655.15097-1-olivier.matz@6wind.com> In-Reply-To: <20170406141655.15097-1-olivier.matz@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- From: Olivier Matz [mailto:olivier.matz@6wind.com] Sent: Thursday, April 6, 2017 10:17 PM To: dev@dpdk.org Cc: Zhang, Helin ; Wu, Jingjing ; Richardson, Bruce ; Yigit, Ferruh Subject: [PATCH] net/i40e: disable init and driver logs by default 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 Acked-by: Helin Zhang --- 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