net/avf: fix admin queue interrupt for ICE
authorWei Zhao <wei.zhao1@intel.com>
Wed, 13 Feb 2019 08:54:13 +0000 (16:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Feb 2019 09:34:41 +0000 (10:34 +0100)
Enable CLEARPBA bit is required by ice NIC of A0/A1 version to
enable admin queue interrupt.
Also enable CLEARPBA bit does no impact on AVF behaviour when be
hosted by other devices, so we can make it as default.

Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/avf/avf_ethdev.c

index 13eec1b..797f505 100644 (file)
@@ -1159,7 +1159,7 @@ avf_enable_irq0(struct avf_hw *hw)
        AVF_WRITE_REG(hw, AVFINT_ICR0_ENA1, AVFINT_ICR0_ENA1_ADMINQ_MASK);
 
        AVF_WRITE_REG(hw, AVFINT_DYN_CTL01, AVFINT_DYN_CTL01_INTENA_MASK |
-                                           AVFINT_DYN_CTL01_ITR_INDX_MASK);
+               AVFINT_DYN_CTL01_CLEARPBA_MASK | AVFINT_DYN_CTL01_ITR_INDX_MASK);
 
        AVF_WRITE_FLUSH(hw);
 }