From: Wenzhuo Lu Date: Mon, 20 Nov 2017 03:37:45 +0000 (+0800) Subject: net/ixgbe: fix wrong PBA setting X-Git-Tag: spdx-start~545 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6b75183ac4d0;p=dpdk.git net/ixgbe: fix wrong PBA setting The datasheet says, if using MSI-X mode, the PBA support bit of the GPIE register must be set to 1. DPDK uses polling mode, we cannot hit this issue in the scenario DPDK PF + DPDK VF. If we use DPDK PF + kernel VF, as the kernel driver uses interrpt mode, VF may hit RX hang after running hours. Fixes: 00e30184daa0 ("ixgbe: add PF support") Cc: stable@dpdk.org Signed-off-by: Wenzhuo Lu Acked-by: Wei Dai --- diff --git a/drivers/net/ixgbe/ixgbe_pf.c b/drivers/net/ixgbe/ixgbe_pf.c index 44ab450097..9b0bd755d8 100644 --- a/drivers/net/ixgbe/ixgbe_pf.c +++ b/drivers/net/ixgbe/ixgbe_pf.c @@ -244,7 +244,7 @@ int ixgbe_pf_host_configure(struct rte_eth_dev *eth_dev) gpie = IXGBE_READ_REG(hw, IXGBE_GPIE); gpie &= ~IXGBE_GPIE_VTMODE_MASK; - gpie |= IXGBE_GPIE_MSIX_MODE; + gpie |= IXGBE_GPIE_MSIX_MODE | IXGBE_GPIE_PBA_SUPPORT; switch (RTE_ETH_DEV_SRIOV(eth_dev).active) { case ETH_64_POOLS: