From 44c976236e68b83d8122a6f5d3ae5f5aff0c72e5 Mon Sep 17 00:00:00 2001 From: Jeff Guo Date: Thu, 4 Oct 2018 14:44:42 +0800 Subject: [PATCH] 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 --- drivers/bus/pci/rte_bus_pci.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ }; /** -- 2.20.1