From: Cunming Liang Date: Fri, 13 Nov 2015 02:50:27 +0000 (+0800) Subject: igb: fix VFIO interrupt vector X-Git-Tag: spdx-start~7998 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4a4ee6c361e7238eb7a1a693deade2be03b1c9eb;p=dpdk.git igb: 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: fe685de2b1b6 ("igb: fix VF start with PF stopped") Reported-by: Yong Liu Signed-off-by: Cunming Liang Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index bfc4124a62..31452ae970 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1101,6 +1101,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);