net/ice: disable useless interrupt

Message ID 1572421604-14087-1-git-send-email-wei.zhao1@intel.com (mailing list archive)
State Superseded, archived
Delegated to: xiaolong ye
Headers
Series net/ice: disable useless interrupt |

Checks

Context Check Description
ci/Intel-compilation fail Compilation issues
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-compilation success Compile Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/travis-robot success Travis build: passed
ci/checkpatch warning coding style issues

Commit Message

Zhao1, Wei Oct. 30, 2019, 7:46 a.m. UTC
  This is a useless interrupt which will cause
intr every time when download FDIR rte_flow rule.

Fixes: cf911d90e366 ("net/ice: support link update")
Cc: stable@dpdk.org

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Zhao1, Wei Oct. 31, 2019, 1:50 a.m. UTC | #1
Tested-by: Qi Fu < qi.fu@intel.com>

> -----Original Message-----
> From: Zhao1, Wei
> Sent: Wednesday, October 30, 2019 3:47 PM
> To: dev@dpdk.org
> Cc: stable@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>; Ye, Xiaolong
> <xiaolong.ye@intel.com>; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: [PATCH] net/ice: disable useless interrupt
> 
> This is a useless interrupt which will cause intr every time when download
> FDIR rte_flow rule.
> 
> Fixes: cf911d90e366 ("net/ice: support link update")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> ---
>  drivers/net/ice/ice_ethdev.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
> index d746758..404d734 100644
> --- a/drivers/net/ice/ice_ethdev.c
> +++ b/drivers/net/ice/ice_ethdev.c
> @@ -1225,6 +1225,8 @@ ice_pf_enable_irq0(struct ice_hw *hw)
>  		      GLINT_DYN_CTL_INTENA_M |
>  		      GLINT_DYN_CTL_CLEARPBA_M |
>  		      GLINT_DYN_CTL_ITR_INDX_M);
> +	/* disable useless intr */
> +	ICE_WRITE_REG(hw, GL_MDCK_TX_TDPU, 0x2);
> 
>  	ice_flush(hw);
>  }
> --
> 2.7.5
  

Patch

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index d746758..404d734 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -1225,6 +1225,8 @@  ice_pf_enable_irq0(struct ice_hw *hw)
 		      GLINT_DYN_CTL_INTENA_M |
 		      GLINT_DYN_CTL_CLEARPBA_M |
 		      GLINT_DYN_CTL_ITR_INDX_M);
+	/* disable useless intr */
+	ICE_WRITE_REG(hw, GL_MDCK_TX_TDPU, 0x2);
 
 	ice_flush(hw);
 }