summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Guo <jia.guo@intel.com>2018-10-04 14:44:42 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-10-15 23:13:31 +0200
commit44c976236e68b83d8122a6f5d3ae5f5aff0c72e5 (patch)
tree0126fd51d3d8809a9ec539fc5b4d56b7690c2ee5
parent89ecd110524dda2ae7d31446eb699a257c76f6cd (diff)
downloaddpdk-44c976236e68b83d8122a6f5d3ae5f5aff0c72e5.zip
dpdk-44c976236e68b83d8122a6f5d3ae5f5aff0c72e5.tar.gz
dpdk-44c976236e68b83d8122a6f5d3ae5f5aff0c72e5.tar.xz
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 <jia.guo@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
-rw-r--r--drivers/bus/pci/rte_bus_pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bus/pci/rte_bus_pci.h b/drivers/bus/pci/rte_bus_pci.h
index 0d1955f..2ed2f50 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 */
};
/**