Skip to contentSkip to conversation

net/i40e: remove driver log

PATCH Superseded Beilei Xing 3 participants 4 messages Sep 18, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: remove driver log

Remove "INFO" level log when no interrupt event
indicated in alarm handler, otherwise there will
be lots of prints which makes console unusable.

---
 drivers/net/i40e/i40e_ethdev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/i40e/i40e_ethdev.c +1 -3
index 24d73f2..974e6c6 100644
@@ -6579,10 +6579,8 @@ i40e_dev_alarm_handler(void *param)
 	icr0 = I40E_READ_REG(hw, I40E_PFINT_ICR0);
 
 	/* No interrupt event indicated */
-	if (!(icr0 & I40E_PFINT_ICR0_INTEVENT_MASK)) {
-		PMD_DRV_LOG(INFO, "No interrupt event");
+	if (!(icr0 & I40E_PFINT_ICR0_INTEVENT_MASK))
 		goto done;
-	}
 	if (icr0 & I40E_PFINT_ICR0_ECC_ERR_MASK)
 		PMD_DRV_LOG(ERR, "ICR0: unrecoverable ECC error");
 	if (icr0 & I40E_PFINT_ICR0_MAL_DETECT_MASK)
Signature · 1 line
2.5.5
#1 lore raw

PATCH v2 1/1 net/i40e: remove driver log

Remove driver log when no interrupt event indicated in alarm handler for both PF and VF, otherwise there will be lots of prints which makes console unusable.

---

v2 changes:
- Also remove the driver log for VF.

 drivers/net/i40e/i40e_ethdev.c    | 4 +---
 drivers/net/i40e/i40e_ethdev_vf.c | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/net/i40e/i40e_ethdev.c +1 -3
index 24d73f2..974e6c6 100644
@@ -6579,10 +6579,8 @@ i40e_dev_alarm_handler(void *param)
 	icr0 = I40E_READ_REG(hw, I40E_PFINT_ICR0);
 
 	/* No interrupt event indicated */
-	if (!(icr0 & I40E_PFINT_ICR0_INTEVENT_MASK)) {
-		PMD_DRV_LOG(INFO, "No interrupt event");
+	if (!(icr0 & I40E_PFINT_ICR0_INTEVENT_MASK))
 		goto done;
-	}
 	if (icr0 & I40E_PFINT_ICR0_ECC_ERR_MASK)
 		PMD_DRV_LOG(ERR, "ICR0: unrecoverable ECC error");
 	if (icr0 & I40E_PFINT_ICR0_MAL_DETECT_MASK)
drivers/net/i40e/i40e_ethdev_vf.c +1 -3
index f9cedf5..42e5f4d 100644
@@ -1384,10 +1384,8 @@ i40evf_dev_alarm_handler(void *param)
 	icr0 = I40E_READ_REG(hw, I40E_VFINT_ICR01);
 
 	/* No interrupt event indicated */
-	if (!(icr0 & I40E_VFINT_ICR01_INTEVENT_MASK)) {
-		PMD_DRV_LOG(DEBUG, "No interrupt event, nothing to do");
+	if (!(icr0 & I40E_VFINT_ICR01_INTEVENT_MASK))
 		goto done;
-	}
 
 	if (icr0 & I40E_VFINT_ICR01_ADMINQ_MASK) {
 		PMD_DRV_LOG(DEBUG, "ICR01_ADMINQ is reported");
Signature · 1 line
2.5.5
Applied
#3 lore raw
Quoted 9 lines

-----Original Message-----
From: Yigit, Ferruh
Sent: Tuesday, September 18, 2018 9:04 PM
To: Xing, Beilei <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: remove driver log

Quoted 8 lines
Quoted 5 lines · Beilei Xing

Remove driver log when no interrupt event indicated in alarm handler for both PF and VF, otherwise there will be lots of prints which makes console unusable.

Applied to dpdk-next-net-intel

Thanks
Qi