All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: "Yigit, Ferruh" <ferruh.yigit@intel.com>,
	"Richardson, Bruce" <bruce.richardson@intel.com>
Cc: "Zhang, Helin" <helin.zhang@intel.com>,
	Olivier Matz <olivier.matz@6wind.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Wu, Jingjing" <jingjing.wu@intel.com>
Subject: Re: [PATCH] net/i40e: disable init and driver logs by default
Date: Thu, 13 Apr 2017 11:03:13 +0000	[thread overview]
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B59892D@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <bbb0ada3-df95-f792-69fa-62c795b457d4@intel.com>

Hi Ferruh,

-----Original Message-----
From: Yigit, Ferruh 
Sent: Thursday, April 13, 2017 5:14 PM
To: Richardson, Bruce <bruce.richardson@intel.com>; Lu, Wenzhuo <wenzhuo.lu@intel.com>
Cc: Zhang, Helin <helin.zhang@intel.com>; Olivier Matz <olivier.matz@6wind.com>; dev@dpdk.org; Wu, Jingjing <jingjing.wu@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default

On 4/12/2017 11:02 AM, Bruce Richardson wrote:
> On Wed, Apr 12, 2017 at 04:12:18AM +0100, Lu, Wenzhuo wrote:
>> Hi,
>>
>>
>>> -----Original Message-----
>>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Helin
>>> Sent: Friday, April 7, 2017 10:03 AM
>>> To: Richardson, Bruce
>>> Cc: Olivier Matz; dev@dpdk.org; Wu, Jingjing; Yigit, Ferruh
>>> Subject: Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver 
>>> logs by default
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Richardson, Bruce
>>>> Sent: Thursday, April 6, 2017 10:37 PM
>>>> To: Zhang, Helin
>>>> Cc: Olivier Matz; dev@dpdk.org; Wu, Jingjing; Yigit, Ferruh
>>>> Subject: Re: [PATCH] net/i40e: disable init and driver logs by 
>>>> default
>>>>
>>>> On Thu, Apr 06, 2017 at 03:31:23PM +0100, Zhang, Helin wrote:
>>>>>
>>>>>
>>>>> -----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 <helin.zhang@intel.com>; Wu, Jingjing 
>>>>> <jingjing.wu@intel.com>; Richardson, Bruce 
>>>>> <bruce.richardson@intel.com>; Yigit, Ferruh 
>>>>> <ferruh.yigit@intel.com>
>>>>> 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 <olivier.matz@6wind.com>
>>>>> Acked-by: Helin Zhang <helin.zhang@intel.com>

<...>

>>>>
>>>> Hi Helin,
>>>>
>>>> Is this the correct fix? IMHO, if this is a problem, then we should 
>>>> surely not be hiding and ignoring the error. If it's not a problem, 
>>>> then the log level should be reduced to a lower level, e.g. INFO or NOTICE.
>>>>
>>>> Alternatively, this code could be modified to only print an error 
>>>> once for each unsupported request type.
>>>>
>>>> Ideally both solutions should be used, I think. I'm not sure I like 
>>>> setting the default log level to just show EMERG messages.
>>>>
>>>> Regards,
>>>> /Bruce
>>> Bruce, this is not a fix for the issue, which is under investigation 
>>> by developers now.
>>>
>>> For the by default log level, any guideline for that?
>>> I was OK with that changes, but not sure if there is any better choices.
>>
>> To my opinion, it's not appropriate to say something not supported is 
>> an error. How about fix this problem like,
>>
>> diff --git a/drivers/net/i40e/i40e_ethdev.c 
>> b/drivers/net/i40e/i40e_ethdev.c index 6927fde..91df587 100644
>> --- a/drivers/net/i40e/i40e_ethdev.c
>> +++ b/drivers/net/i40e/i40e_ethdev.c
>> @@ -5794,7 +5794,7 @@ struct i40e_vsi *
>>                         }
>>                         break;
>>                 default:
>> -                       PMD_DRV_LOG(ERR, "Request %u is not supported yet",
>> +                       PMD_DRV_LOG(DEBUG, "Request %u is not 
>> + supported yet",
>>                                     opcode);
>>                         break;
>>                 }
> 
> Ok to me.

> +1.

> Wenzhuo would you mind sending this as patch?
Sure. Will do. 


  reply	other threads:[~2017-04-13 11:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06 14:16 [PATCH] net/i40e: disable init and driver logs by default Olivier Matz
2017-04-06 14:31 ` Zhang, Helin
2017-04-06 14:36   ` Bruce Richardson
2017-04-06 15:16     ` Olivier MATZ
2017-04-07  1:56       ` Zhang, Helin
2017-04-07  2:03     ` Zhang, Helin
2017-04-12  3:12       ` Lu, Wenzhuo
2017-04-12 10:02         ` Bruce Richardson
2017-04-13  9:14           ` Ferruh Yigit
2017-04-13 11:03             ` Lu, Wenzhuo [this message]
2017-04-14  8:55               ` Ferruh Yigit
2017-04-06 14:39   ` Thomas Monjalon

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=6A0DE07E22DDAD4C9103DF62FEBC09093B59892D@shsmsx102.ccr.corp.intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=helin.zhang@intel.com \
    --cc=jingjing.wu@intel.com \
    --cc=olivier.matz@6wind.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.