numam-dpdk/drivers
Wei Dai 66b8304f9d 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: 4b90a3ff26 ("i40evf: support Rx interrupt")
Cc: stable@dpdk.org

Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
2017-11-03 20:13:42 +01:00
..
bus bus/pci: fix namespace of sysfs path function 2017-11-07 00:44:10 +01:00
crypto cryptodev: rename physical address type to IOVA 2017-11-06 22:44:26 +01:00
event remove useless memzone includes 2017-11-06 22:12:08 +01:00
mempool mempool: rename address mapping function to IOVA 2017-11-06 22:26:13 +01:00
net net/i40e: fix VFIO interrupt mapping in VF 2017-11-03 20:13:42 +01:00
Makefile drivers: add net as dependency for event drivers 2017-10-25 14:03:43 +02:00