From: Cunming Liang Date: Fri, 13 Nov 2015 02:50:26 +0000 (+0800) Subject: ixgbe: fix VFIO interrupt vector X-Git-Tag: spdx-start~7997 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4ba427971a9fab416e207f1acd091b8a66d6d4b6;p=dpdk.git ixgbe: fix VFIO interrupt vector The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting. Fixes: 7ab8500037f6 ("ixgbe: fix VF start with PF stopped") Reported-by: Yong Liu Signed-off-by: Cunming Liang Tested-by: Yong Liu Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 594dd7db1e..49f2410a19 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1991,6 +1991,9 @@ ixgbe_dev_start(struct rte_eth_dev *dev) return -EINVAL; } + /* disable uio/vfio intr/eventfd mapping */ + rte_intr_disable(intr_handle); + /* stop adapter */ hw->adapter_stopped = 0; ixgbe_stop_adapter(hw);