From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 23C2C935C for ; Fri, 13 Nov 2015 03:50:37 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 12 Nov 2015 18:50:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,285,1444719600"; d="scan'208";a="849455922" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 12 Nov 2015 18:50:36 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id tAD2oYIk029085; Fri, 13 Nov 2015 10:50:34 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tAD2oUvc011186; Fri, 13 Nov 2015 10:50:32 +0800 Received: (from cliang18@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id tAD2oUOs011182; Fri, 13 Nov 2015 10:50:30 +0800 From: Cunming Liang To: dev@dpdk.org Date: Fri, 13 Nov 2015 10:50:27 +0800 Message-Id: <1447383027-11140-2-git-send-email-cunming.liang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1447383027-11140-1-git-send-email-cunming.liang@intel.com> References: <1447383027-11140-1-git-send-email-cunming.liang@intel.com> Subject: [dpdk-dev] [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 02:50:38 -0000 The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting. Fixes: fe685de2b1b6 ("igb: fix VF start with PF stopped") Reported-by: Yong Liu Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 4bf4e52..c61ceab 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1092,6 +1092,9 @@ eth_igb_start(struct rte_eth_dev *dev) PMD_INIT_FUNC_TRACE(); + /* disable uio/vfio intr/eventfd mapping */ + rte_intr_disable(intr_handle); + /* Power up the phy. Needed to make the link go Up */ e1000_power_up_phy(hw); -- 2.4.3