[dpdk-dev] [PATCH v8 9/9] interrupts: extend event list
David Marchand
david.marchand at redhat.com
Thu Oct 28 19:16:13 CEST 2021
On Thu, Oct 28, 2021 at 5:58 PM Ji, Kai <kai.ji at intel.com> wrote:
> This patch is causing QAT failed during interrupt init, the event list does not support interrupt count size zero in QAT case.
>
> There is also Bugzilla relate to this issue: https://bugs.dpdk.org/show_bug.cgi?id=843
(We could avoid updating event list if it is large enough but) your
problem must be that QAT does not have MSIX.
Can you try this quick fix?
diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c
index f622e7f8e6..13733d03f3 100644
--- a/drivers/bus/pci/linux/pci_vfio.c
+++ b/drivers/bus/pci/linux/pci_vfio.c
@@ -269,7 +269,8 @@ pci_vfio_setup_interrupts(struct rte_pci_device
*dev, int vfio_dev_fd)
/* Reallocate the efds and elist fields of intr_handle based
* on PCI device MSIX size.
*/
- if (rte_intr_event_list_update(dev->intr_handle, irq.count))
+ if (i == VFIO_PCI_MSIX_IRQ_INDEX &&
+
rte_intr_event_list_update(dev->intr_handle, irq.count))
return -1;
/* if this vector cannot be used with eventfd, fail if
we explicitly
--
David Marchand
More information about the dev
mailing list