From: Jeff Guo Date: Thu, 4 Oct 2018 06:44:42 +0000 (+0800) Subject: bus/pci: add VFIO request interrupt handle to device X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=44c976236e68b83d8122a6f5d3ae5f5aff0c72e5;p=dpdk.git bus/pci: add VFIO request interrupt handle to device There are some extended interrupt types in vfio pci device except from the existing interrupts, such as err and req notifier, they could be useful for device error monitoring. And these corresponding interrupt handler is different from the other interrupt handler that register in PMDs, so a new interrupt handler should be added. This patch will add specific req handler in generic pci device. Signed-off-by: Jeff Guo Acked-by: Anatoly Burakov --- diff --git a/drivers/bus/pci/rte_bus_pci.h b/drivers/bus/pci/rte_bus_pci.h index 0d1955ffe0..2ed2f5053b 100644 --- a/drivers/bus/pci/rte_bus_pci.h +++ b/drivers/bus/pci/rte_bus_pci.h @@ -66,6 +66,8 @@ struct rte_pci_device { uint16_t max_vfs; /**< sriov enable if not zero */ enum rte_kernel_driver kdrv; /**< Kernel driver passthrough */ char name[PCI_PRI_STR_SIZE+1]; /**< PCI location (ASCII) */ + struct rte_intr_handle vfio_req_intr_handle; + /**< Handler of VFIO request interrupt */ }; /**