From: Qiming Yang Date: Tue, 18 Jul 2017 02:28:34 +0000 (+0800) Subject: net/ixgbe: fix Rx/Tx queue interrupt for x550 devices X-Git-Tag: spdx-start~2423 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9f9d2653f19673c9c5b4d2cbf3592a7256f4771d;p=dpdk.git net/ixgbe: fix Rx/Tx queue interrupt for x550 devices x550 devices don't map interrupt vector before enabling Rx/Tx queue interrupt. Because of this interrupt mode is not working for x550 devices. Fixes: d2e72774e58c ("ixgbe/base: support X550") Cc: stable@dpdk.org Signed-off-by: Qiming Yang Acked-by: Wei Dai --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 31793ccd41..194058fb8e 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -5618,7 +5618,8 @@ ixgbe_set_ivar_map(struct ixgbe_hw *hw, int8_t direction, tmp |= (msix_vector << (8 * (queue & 0x3))); IXGBE_WRITE_REG(hw, IXGBE_IVAR(idx), tmp); } else if ((hw->mac.type == ixgbe_mac_82599EB) || - (hw->mac.type == ixgbe_mac_X540)) { + (hw->mac.type == ixgbe_mac_X540) || + (hw->mac.type == ixgbe_mac_X550)) { if (direction == -1) { /* other causes */ idx = ((queue & 1) * 8); @@ -5726,6 +5727,7 @@ ixgbe_configure_msix(struct rte_eth_dev *dev) break; case ixgbe_mac_82599EB: case ixgbe_mac_X540: + case ixgbe_mac_X550: ixgbe_set_ivar_map(hw, -1, 1, IXGBE_MISC_VEC_ID); break; default: