> -----Original Message----- > From: Dai, Wei > Sent: Friday, November 3, 2017 4:47 PM > To: Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei <beilei.x...@intel.com> > Cc: dev@dpdk.org; Dai, Wei <wei....@intel.com>; sta...@dpdk.org > Subject: [PATCH v3 1/2] net/i40e: 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 i40evf_dev_init( ). > In i40evf_dev_interrupt_handle( ) and i40evf_dev_rx_queue_intr_enable( ), > if previous VFIO interrupt mapping set in i40evf_dev_init( ) is not > cleared, it will fail when PMD tries to map Rx queue interrupt to other > VFIO vectors by calling rte_intr_enable( ). > This patch clears the VFIO interrupt mappings before setting both > miscellaneous and Rx queue interrupt mappings again to avoid failure. > And remove the calling of rte_intr_enable( ) in > i40evf_dev_interrupt_handler( ) as there is no need to map VFIO interrupt > in this function repeatedly. > > Fixes: 4b90a3ff26c5 ("i40evf: support Rx interrupt") > Cc: sta...@dpdk.org > > Signed-off-by: Wei Dai <wei....@intel.com>
Acked-by: Jingjing Wu <jingjing...@intel.com>