From: Beilei Xing Date: Tue, 18 Sep 2018 05:44:10 +0000 (+0800) Subject: net/i40e: remove driver log X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=55c7fbe42d35c07d7cbbbcd8bff2e985c537d867;p=dpdk.git 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. Signed-off-by: Beilei Xing Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 51ad847e8f..1847f22822 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -6641,10 +6641,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) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index f9cedf5b30..42e5f4d5f1 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -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");