* [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default @ 2017-04-06 14:16 Olivier Matz 2017-04-06 14:31 ` Zhang, Helin 0 siblings, 1 reply; 12+ messages in thread From: Olivier Matz @ 2017-04-06 14:16 UTC (permalink / raw) To: dev; +Cc: helin.zhang, jingjing.wu, bruce.richardson, ferruh.yigit 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> --- 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-06 14:16 [dpdk-dev] [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 14:39 ` Thomas Monjalon 0 siblings, 2 replies; 12+ messages in thread From: Zhang, Helin @ 2017-04-06 14:31 UTC (permalink / raw) To: Olivier Matz, dev; +Cc: Wu, Jingjing, Richardson, Bruce, Yigit, Ferruh -----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> --- 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-06 14:31 ` Zhang, Helin @ 2017-04-06 14:36 ` Bruce Richardson 2017-04-06 15:16 ` Olivier MATZ 2017-04-07 2:03 ` Zhang, Helin 2017-04-06 14:39 ` Thomas Monjalon 1 sibling, 2 replies; 12+ messages in thread From: Bruce Richardson @ 2017-04-06 14:36 UTC (permalink / raw) To: Zhang, Helin; +Cc: Olivier Matz, dev, Wu, Jingjing, Yigit, Ferruh 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> > --- > 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); > } > -- 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 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 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 1 sibling, 1 reply; 12+ messages in thread From: Olivier MATZ @ 2017-04-06 15:16 UTC (permalink / raw) To: Bruce Richardson; +Cc: Zhang, Helin, dev, Wu, Jingjing, Yigit, Ferruh On Thu, 6 Apr 2017 15:36:43 +0100, Bruce Richardson <bruce.richardson@intel.com> wrote: > 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> > > --- > > 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); > > } > > -- > > 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. Yes, now that these logs are not stripped at compilation, we should do an effort to have the proper default log value (notice, warning, error?), and have the proper log level on each log, depending on its criticality and maybe its frequency (maybe we'll want to rate limit the logs in the future). This is a more global discussion, which is not especially related to i40e (the only part of code that currently use dynamic logs). Olivier ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-06 15:16 ` Olivier MATZ @ 2017-04-07 1:56 ` Zhang, Helin 0 siblings, 0 replies; 12+ messages in thread From: Zhang, Helin @ 2017-04-07 1:56 UTC (permalink / raw) To: Olivier MATZ, Richardson, Bruce; +Cc: dev, Wu, Jingjing, Yigit, Ferruh > -----Original Message----- > From: Olivier MATZ [mailto:olivier.matz@6wind.com] > Sent: Thursday, April 6, 2017 11:17 PM > To: Richardson, Bruce > Cc: Zhang, Helin; dev@dpdk.org; Wu, Jingjing; Yigit, Ferruh > Subject: Re: [PATCH] net/i40e: disable init and driver logs by default > > On Thu, 6 Apr 2017 15:36:43 +0100, Bruce Richardson > <bruce.richardson@intel.com> wrote: > > 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> > > > --- > > > 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); > > > } > > > -- > > > > 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. > > Yes, now that these logs are not stripped at compilation, we should do an > effort to have the proper default log value (notice, warning, error?), and have > the proper log level on each log, depending on its criticality and maybe its > frequency (maybe we'll want to rate limit the logs in the future). > > This is a more global discussion, which is not especially related to i40e (the only > part of code that currently use dynamic logs). > > Olivier The issue is being analyzed now, definitely we will track that with a conclusion of a fix or not an issue. So it will not be missed. Thanks for your reminder! For the patch itself, I am OK with that changes. Regards, Helin ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-06 14:36 ` Bruce Richardson 2017-04-06 15:16 ` Olivier MATZ @ 2017-04-07 2:03 ` Zhang, Helin 2017-04-12 3:12 ` Lu, Wenzhuo 1 sibling, 1 reply; 12+ messages in thread From: Zhang, Helin @ 2017-04-07 2:03 UTC (permalink / raw) To: Richardson, Bruce; +Cc: Olivier Matz, dev, Wu, Jingjing, Yigit, Ferruh > -----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> > > --- > > 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); > > } > > -- > > 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. Regards, Helin ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-07 2:03 ` Zhang, Helin @ 2017-04-12 3:12 ` Lu, Wenzhuo 2017-04-12 10:02 ` Bruce Richardson 0 siblings, 1 reply; 12+ messages in thread From: Lu, Wenzhuo @ 2017-04-12 3:12 UTC (permalink / raw) To: Zhang, Helin, Richardson, Bruce Cc: Olivier Matz, dev, Wu, Jingjing, Yigit, Ferruh 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> > > > --- > > > 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); > > > } > > > -- > > > > 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; } ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-12 3:12 ` Lu, Wenzhuo @ 2017-04-12 10:02 ` Bruce Richardson 2017-04-13 9:14 ` Ferruh Yigit 0 siblings, 1 reply; 12+ messages in thread From: Bruce Richardson @ 2017-04-12 10:02 UTC (permalink / raw) To: Lu, Wenzhuo; +Cc: Zhang, Helin, Olivier Matz, dev, Wu, Jingjing, Yigit, Ferruh 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> > > > > --- > > > > 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); > > > > } > > > > -- > > > > > > 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. /Bruce ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-12 10:02 ` Bruce Richardson @ 2017-04-13 9:14 ` Ferruh Yigit 2017-04-13 11:03 ` Lu, Wenzhuo 0 siblings, 1 reply; 12+ messages in thread From: Ferruh Yigit @ 2017-04-13 9:14 UTC (permalink / raw) To: Bruce Richardson, Lu, Wenzhuo Cc: Zhang, Helin, Olivier Matz, dev, Wu, Jingjing 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? Thanks, ferruh > > /Bruce > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-13 9:14 ` Ferruh Yigit @ 2017-04-13 11:03 ` Lu, Wenzhuo 2017-04-14 8:55 ` Ferruh Yigit 0 siblings, 1 reply; 12+ messages in thread From: Lu, Wenzhuo @ 2017-04-13 11:03 UTC (permalink / raw) To: Yigit, Ferruh, Richardson, Bruce Cc: Zhang, Helin, Olivier Matz, dev, Wu, Jingjing 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. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-13 11:03 ` Lu, Wenzhuo @ 2017-04-14 8:55 ` Ferruh Yigit 0 siblings, 0 replies; 12+ messages in thread From: Ferruh Yigit @ 2017-04-14 8:55 UTC (permalink / raw) To: Lu, Wenzhuo, Richardson, Bruce Cc: Zhang, Helin, Olivier Matz, dev, Wu, Jingjing On 4/13/2017 12:03 PM, Lu, Wenzhuo wrote: > 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. Sent [1], this patch marked as superseded. Thanks, ferruh [1] http://dpdk.org/dev/patchwork/patch/23635/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default 2017-04-06 14:31 ` Zhang, Helin 2017-04-06 14:36 ` Bruce Richardson @ 2017-04-06 14:39 ` Thomas Monjalon 1 sibling, 0 replies; 12+ messages in thread From: Thomas Monjalon @ 2017-04-06 14:39 UTC (permalink / raw) To: Zhang, Helin Cc: dev, Olivier Matz, Wu, Jingjing, Richardson, Bruce, Yigit, Ferruh Hi Helin, Thanks for acknowledging. This mail to explain how important it is to configure his mailer. You need to quote the original mail so we can quickly find what you have replied. It is also a problem for patchwork as it creates a new entry: http://dpdk.org/dev/patchwork/patch/23300/ because it thinks it is a new patch. So your ack is not registered in the original patch entry: http://dpdk.org/dev/patchwork/patch/23298/ Please share this explanation, thanks 2017-04-06 14:31, Zhang, Helin: > > -----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> > --- > 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 > ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-04-14 8:55 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-04-06 14:16 [dpdk-dev] [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 2017-04-14 8:55 ` Ferruh Yigit 2017-04-06 14:39 ` Thomas Monjalon
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).