net/ixgbe: fix VFIO interrupt mapping in VF
authorWei Dai <wei.dai@intel.com>
Thu, 28 Sep 2017 02:28:33 +0000 (10:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:52:50 +0000 (01:52 +0100)
commit06938770186afcfd05a4d6d3addee12645c9c558
tree1dd3f40d6f9ef77765d53cd5ac8a77d6039f59c5
parentca9d6597184bddb8d3ee925cb462fcbd51628299
net/ixgbe: fix VFIO interrupt mapping in VF

When a VF port is bound to VFIO-PIC, only miscellaneous interrupt
is mapped to VFIO vector 0 in eth_ixgbevf_dev_init( ).
In ixgbevf_dev_start(), if previous VFIO interrupt mapping set in
eth_ixgbevf_dev_init( ) is not cleard, it will fail when calling
rte_intr_enable( ) tries to map Rx queue interrupt to other VFIO
vectors. This patch clears the VFIO interrupt mappings before
setting both miscellaneous and Rx queue interrupt mappings again
to avoid failure.

Fixes: 77234603fba0 ("net/ixgbe: support VF mailbox interrupt for link up/down")
Cc: stable@dpdk.org
Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Tested-by: Jianwei Ma <jianwei.ma@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c