From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E6D7A0613 for ; Fri, 27 Sep 2019 22:02:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 43FD11BE8D; Fri, 27 Sep 2019 22:02:29 +0200 (CEST) Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) by dpdk.org (Postfix) with ESMTP id 473241BE8B for ; Fri, 27 Sep 2019 22:02:28 +0200 (CEST) Received: from localhost (scalar.blr.asicdesigners.com [10.193.185.94]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id x8RK2NpM012799; Fri, 27 Sep 2019 13:02:24 -0700 Date: Sat, 28 Sep 2019 01:25:10 +0530 From: Rahul Lakkireddy To: Ferruh Yigit Cc: "dev@dpdk.org" , Nirranjan Kirubaharan Message-ID: <20190927195508.GA20377@chelsio.com> References: <1b6a348acb804f819857f1a3aea58cf4ba5ce00c.1567799552.git.rahul.lakkireddy@chelsio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-dev] [PATCH 07/12] net/cxgbe: use dynamic logging for debug prints 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" On Friday, September 09/27/19, 2019 at 20:07:20 +0530, Ferruh Yigit wrote: > On 9/6/2019 10:52 PM, Rahul Lakkireddy wrote: > > Remove compile time flags and use dynamic logging for debug prints. > > > > Signed-off-by: Rahul Lakkireddy > > --- > > config/common_base | 5 --- > > doc/guides/nics/cxgbe.rst | 20 ----------- > > drivers/net/cxgbe/cxgbe_compat.h | 58 +++++++++++--------------------- > > drivers/net/cxgbe/cxgbe_ethdev.c | 16 +++++++++ > > 4 files changed, 35 insertions(+), 64 deletions(-) > > > > diff --git a/config/common_base b/config/common_base > > index 8ef75c203..43964de6d 100644 > > --- a/config/common_base > > +++ b/config/common_base > > @@ -217,11 +217,6 @@ CONFIG_RTE_LIBRTE_BNXT_PMD=y > > # Compile burst-oriented Chelsio Terminator (CXGBE) PMD > > # > > CONFIG_RTE_LIBRTE_CXGBE_PMD=y > > -CONFIG_RTE_LIBRTE_CXGBE_DEBUG=n > > +1, thanks. > > > -CONFIG_RTE_LIBRTE_CXGBE_DEBUG_REG=n > > -CONFIG_RTE_LIBRTE_CXGBE_DEBUG_MBOX=n > > Are above two used on datapath? > MBOX is only used in control path. But, REG is used in both control and datapath. > > -CONFIG_RTE_LIBRTE_CXGBE_DEBUG_TX=n > > -CONFIG_RTE_LIBRTE_CXGBE_DEBUG_RX=n > > Are you sure about these? > If these logs are enabled in datapath, switching to the dynamic log will add > additional checks for logging, most probably per packet. (Sigh)... You're correct! I was too excited about the nifty dynamic log feature and somehow missed the above obvious point... :( On second thought, the REG, TX, and RX prints are rarely enabled and hence I'm going to remove them completely. OTOH, MBOX helped in debugging several control path issues in the past, so it will be kept as dynamic log. Will send v2. Thanks, Rahul