From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cunming Liang Subject: [PATCH 1/2] ixgbe: fix vfio ioctl SET_IRQS error Date: Fri, 13 Nov 2015 10:50:26 +0800 Message-ID: <1447383027-11140-1-git-send-email-cunming.liang@intel.com> To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C0F759252 for ; Fri, 13 Nov 2015 03:50:35 +0100 (CET) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 19ddb52..c2be264 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1976,6 +1976,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); -- 2.4.3