From: Wei Zhao Date: Wed, 13 Feb 2019 08:54:13 +0000 (+0800) Subject: net/avf: fix admin queue interrupt for ICE X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f9fa1bb46419b3dc29fc4267c31547d34dcb1383;p=dpdk.git 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 --- 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); }