Re: [dpdk-dev] [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Tan, Jianfeng
On 11/9/2017 12:01 PM, Yang, Zhiyong wrote: static int +virtio_intr_enable(struct rte_eth_dev *dev) { + struct virtio_hw *hw = dev->data->dev_private; + + if (rte_intr_enable(dev->intr_handle) < 0) + return -1; + + if (!hw->virtio_user_dev) + hw

Re: [dpdk-dev] [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Yang, Zhiyong
> -Original Message- > From: Tan, Jianfeng > Sent: Thursday, November 9, 2017 11:47 AM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: y...@fridaylinux.org > Subject: Re: [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci > > > > On 11/9/2017 11:18 AM, Zhiyong Yang wrote: > > Whe

Re: [dpdk-dev] [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Tan, Jianfeng
On 11/9/2017 11:18 AM, Zhiyong Yang wrote: 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

[dpdk-dev] [PATCH v3] net/virtio: fix rxq intr config fails using vfio-pci

2017-11-08 Thread Zhiyong Yang
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", n