DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Harish Patil <harish.patil@qlogic.com>
Cc: dev@dpdk.org, Sony Chacko <sony.chacko@qlogic.com>
Subject: Re: [dpdk-dev] [PATCH 3/5] bnx2x: Add RTE_LIBRTE_BNX2X_REG_ACCESS config option
Date: Sat, 24 Oct 2015 15:09:33 +0200	[thread overview]
Message-ID: <6673500.WzqtfFB45U@xps13> (raw)
In-Reply-To: <D24FFE23.DA654%harish.patil@qlogic.com>

2015-10-23 22:28, Harish Patil:
> >2015-09-11 17:42, Rasesh Mody:
> >> From: Harish Patil <harish.patil@qlogic.com>
> >> --- a/config/common_linuxapp
> >> +++ b/config/common_linuxapp
> >> @@ -220,6 +220,7 @@ CONFIG_RTE_LIBRTE_BNX2X_DEBUG_INIT=n
> >>  CONFIG_RTE_LIBRTE_BNX2X_DEBUG_RX=n
> >>  CONFIG_RTE_LIBRTE_BNX2X_DEBUG_TX=n
> >>  CONFIG_RTE_LIBRTE_BNX2X_MF_SUPPORT=n
> >> +CONFIG_RTE_LIBRTE_BNX2X_REG_ACCESS=n
> >
> >Why do you need this option?
> 
> Currently logging of register accesses is using (wrongly) the generic
> driver debug option of PMD_DRV_LOG (which gets enabled if
> CONFIG_RTE_LIBRTE_BNX2X_DEBUG=y).
> This floods the console due to excessive printing of register
> reads/writes. So creating a new debug option in order to capture only the
> register read/writes (if required) and also does not interfere with the
> informational/user-level debug.

You mean there is not enough log levels?

#define RTE_LOG_EMERG    1U  /**< System is unusable.               */
#define RTE_LOG_ALERT    2U  /**< Action must be taken immediately. */
#define RTE_LOG_CRIT     3U  /**< Critical conditions.              */
#define RTE_LOG_ERR      4U  /**< Error conditions.                 */
#define RTE_LOG_WARNING  5U  /**< Warning conditions.               */
#define RTE_LOG_NOTICE   6U  /**< Normal but significant condition. */
#define RTE_LOG_INFO     7U  /**< Informational.                    */
#define RTE_LOG_DEBUG    8U  /**< Debug-level messages.             */

Either other "debug" logs can be put as INFO level, or
you need a level 9 for verbose debug.
But I don't really understand what is the problem of a verbose debug.

It is not critical for the acceptance of this patch. Just wanted to discuss
it as we have many config options to tune the debug.

Please, at least, use the DEBUG word in the option name as done for
CONFIG_RTE_LIBRTE_BNX2X_DEBUG_RX.

  reply	other threads:[~2015-10-24 13:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-12  0:42 [dpdk-dev] [PATCH 0/5] bnx2x: Enhancement, fixes, licensing and doumentation Rasesh Mody
2015-09-12  0:42 ` [dpdk-dev] [PATCH 1/5] bnx2x: SR-IOV VF driver changes to support OOB PF driver Rasesh Mody
2015-10-20 16:10   ` Thomas Monjalon
2015-10-21 15:24     ` Harish Patil
2015-10-21 15:34       ` Thomas Monjalon
2015-10-21 15:42         ` Harish Patil
2015-09-12  0:42 ` [dpdk-dev] [PATCH 2/5] bnx2x: Fix x86_64-native-linuxapp-clang build error Rasesh Mody
2015-10-20 16:11   ` Thomas Monjalon
2015-10-23 16:36     ` Harish Patil
2015-10-23 16:42       ` Thomas Monjalon
2015-09-12  0:42 ` [dpdk-dev] [PATCH 3/5] bnx2x: Add RTE_LIBRTE_BNX2X_REG_ACCESS config option Rasesh Mody
2015-10-20 16:18   ` Thomas Monjalon
2015-10-23 22:28     ` Harish Patil
2015-10-24 13:09       ` Thomas Monjalon [this message]
2015-11-07  3:08         ` Harish Patil
     [not found]           ` <5600189.IfZWYQEBpk@xps13>
2015-11-08 16:14             ` Harish Patil
2015-09-12  0:42 ` [dpdk-dev] [PATCH 4/5] doc: Add BNX2X PMD documentation Rasesh Mody
2015-09-12  0:42 ` [dpdk-dev] [PATCH 5/5] bnx2x: Add LICENSE.bnx2x_pmd and update source files Rasesh Mody
2015-09-12  1:17 ` [dpdk-dev] [PATCH 0/5] bnx2x: Enhancement, fixes, licensing and doumentation Stephen Hemminger
2015-09-12  2:27   ` Harish Patil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6673500.WzqtfFB45U@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=harish.patil@qlogic.com \
    --cc=sony.chacko@qlogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).