From f9fa1bb46419b3dc29fc4267c31547d34dcb1383 Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Wed, 13 Feb 2019 16:54:13 +0800 Subject: [PATCH] net/avf: fix admin queue interrupt for ICE 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 Acked-by: Qi Zhang --- drivers/net/avf/avf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c index 13eec1b45c..797f505a80 100644 --- a/drivers/net/avf/avf_ethdev.c +++ b/drivers/net/avf/avf_ethdev.c @@ -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); } -- 2.20.1