numam-dpdk/drivers
Zhiyong Yang fe19d49cb5 net/virtio: fix Rx interrupt with VFIO
When running l3fwd-power to test virtio rxq interrupt using vfio
pci noiommu mode, startup fails. In the function virtio_read_caps,
the code if (flags & PCI_MSIX_ENABLE) intends to double check
if vfio msix is enabled or not. However, it is not enable at that
time. So use_msix is assigned to "0", not "1", which causes the
failure of configuring rxq intr in l3fwd-power.
This patch adds the function "vtpci_msix_detect" to detect the status
of msix when interrupt changes happen.
In the meanwhile, virtio_intr_enable/disable are introduced to wrap
rte_intr_enable/disable to enhance the ability to detect msix.
use_msix can indicate three different msix status by:
VIRTIO_MSIX_NONE (0)
VIRTIO_MSIX_DISABLED (1)
VIRTIO_MSIX_ENABLED (2)

Fixes: cb482cb3a3 ("net/virtio: fix MAC address read")
Cc: stable@dpdk.org

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2017-11-11 15:54:16 +01:00
..
bus bus/pci: fix PPC condition for IOMMU class 2017-11-07 17:04:09 +01:00
crypto bus/vdev: move code from EAL into a new driver 2017-11-07 16:54:07 +01:00
event bus/vdev: move code from EAL into a new driver 2017-11-07 16:54:07 +01:00
mempool mempool: rename address mapping function to IOVA 2017-11-06 22:26:13 +01:00
net net/virtio: fix Rx interrupt with VFIO 2017-11-11 15:54:16 +01:00
Makefile drivers: add net as dependency for event drivers 2017-10-25 14:03:43 +02:00