diff mbox series

net/igc: remove some useless log

Message ID 20200430062326.20676-1-alvinx.zhang@intel.com (mailing list archive)
State Superseded, archived
Delegated to: xiaolong ye
Headers show
Series net/igc: remove some useless log | expand

Checks

Context Check Description
ci/iol-testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Alvin Zhang April 30, 2020, 6:23 a.m. UTC
From: Alvin Zhang <alvinx.zhang@intel.com>

As title.

Fixes: 746664d546fb (net/igc: implement flow API)
Cc: stable@dpdk.org

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
---
 drivers/net/igc/igc_txrx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Xiaolong Ye May 7, 2020, 6:31 a.m. UTC | #1
On 04/30, alvinx.zhang@intel.com wrote:
>From: Alvin Zhang <alvinx.zhang@intel.com>
>
>As title.
>
>Fixes: 746664d546fb (net/igc: implement flow API)
>Cc: stable@dpdk.org
>
>Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
>---
> drivers/net/igc/igc_txrx.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
>diff --git a/drivers/net/igc/igc_txrx.c b/drivers/net/igc/igc_txrx.c
>index 5b269b6..4654ec4 100644
>--- a/drivers/net/igc/igc_txrx.c
>+++ b/drivers/net/igc/igc_txrx.c
>@@ -1035,10 +1035,8 @@ int eth_igc_rx_descriptor_status(void *rx_queue, uint16_t offset)
> {
> 	struct igc_rss_filter *rss_filter = IGC_DEV_PRIVATE_RSS_FILTER(dev);
> 
>-	if (!rss_filter->enable) {
>-		PMD_DRV_LOG(WARNING, "RSS filter not enabled!");
>+	if (!rss_filter->enable)
> 		return;

Why this log is useless?

>-	}
> 
> 	/* recover default RSS configuration */
> 	igc_rss_configure(dev);
>-- 
>1.8.3.1
>
Alvin Zhang May 7, 2020, 7:22 a.m. UTC | #2
Hi Xiaolong,

The purpose of this function is to clear RSS related configuration, if the RSS filter not been enabled, this message will be printed.
The reason for printing this message is that this function will be called when the RSS flow was previously deleted and will prompt the user if RSS is not enabled. 
When rectifying later, deleting the RSS flow will not call this function, and this function is similar to another function but the other function does not print the log, 
so the other function is replaced by this function, but I forgot to delete the log.

Thanks,
Alvin


> -----Original Message-----
> From: Ye, Xiaolong
> Sent: Thursday, May 7, 2020 2:32 PM
> To: Zhang, AlvinX <alvinx.zhang@intel.com>
> Cc: dev@dpdk.org; Guo, Jia <jia.guo@intel.com>; stable@dpdk.org
> Subject: Re: [PATCH] net/igc: remove some useless log
> 
> On 04/30, alvinx.zhang@intel.com wrote:
> >From: Alvin Zhang <alvinx.zhang@intel.com>
> >
> >As title.
> >
> >Fixes: 746664d546fb (net/igc: implement flow API)
> >Cc: stable@dpdk.org
> >
> >Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
> >---
> > drivers/net/igc/igc_txrx.c | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
> >
> >diff --git a/drivers/net/igc/igc_txrx.c b/drivers/net/igc/igc_txrx.c
> >index 5b269b6..4654ec4 100644
> >--- a/drivers/net/igc/igc_txrx.c
> >+++ b/drivers/net/igc/igc_txrx.c
> >@@ -1035,10 +1035,8 @@ int eth_igc_rx_descriptor_status(void
> *rx_queue,
> >uint16_t offset)  {
> > 	struct igc_rss_filter *rss_filter = IGC_DEV_PRIVATE_RSS_FILTER(dev);
> >
> >-	if (!rss_filter->enable) {
> >-		PMD_DRV_LOG(WARNING, "RSS filter not enabled!");
> >+	if (!rss_filter->enable)
> > 		return;
> 
> Why this log is useless?
> 
> >-	}
> >
> > 	/* recover default RSS configuration */
> > 	igc_rss_configure(dev);
> >--
> >1.8.3.1
> >
diff mbox series

Patch

diff --git a/drivers/net/igc/igc_txrx.c b/drivers/net/igc/igc_txrx.c
index 5b269b6..4654ec4 100644
--- a/drivers/net/igc/igc_txrx.c
+++ b/drivers/net/igc/igc_txrx.c
@@ -1035,10 +1035,8 @@  int eth_igc_rx_descriptor_status(void *rx_queue, uint16_t offset)
 {
 	struct igc_rss_filter *rss_filter = IGC_DEV_PRIVATE_RSS_FILTER(dev);
 
-	if (!rss_filter->enable) {
-		PMD_DRV_LOG(WARNING, "RSS filter not enabled!");
+	if (!rss_filter->enable)
 		return;
-	}
 
 	/* recover default RSS configuration */
 	igc_rss_configure(dev);