git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus/pci: switch to private kernel driver enum
[dpdk.git]
/
drivers
/
bus
/
pci
/
rte_bus_pci.h
diff --git
a/drivers/bus/pci/rte_bus_pci.h
b/drivers/bus/pci/rte_bus_pci.h
index
29bea6d
..
ff6f072
100644
(file)
--- a/
drivers/bus/pci/rte_bus_pci.h
+++ b/
drivers/bus/pci/rte_bus_pci.h
@@
-51,6
+51,15
@@
TAILQ_HEAD(rte_pci_driver_list, rte_pci_driver);
struct rte_devargs;
struct rte_devargs;
+enum rte_pci_kernel_driver {
+ RTE_PCI_KDRV_UNKNOWN = 0,
+ RTE_PCI_KDRV_IGB_UIO,
+ RTE_PCI_KDRV_VFIO,
+ RTE_PCI_KDRV_UIO_GENERIC,
+ RTE_PCI_KDRV_NIC_UIO,
+ RTE_PCI_KDRV_NONE,
+};
+
/**
* A structure describing a PCI device.
*/
/**
* A structure describing a PCI device.
*/
@@
-64,7
+73,7
@@
struct rte_pci_device {
struct rte_intr_handle intr_handle; /**< Interrupt handle */
struct rte_pci_driver *driver; /**< PCI driver used in probing */
uint16_t max_vfs; /**< sriov enable if not zero */
struct rte_intr_handle intr_handle; /**< Interrupt handle */
struct rte_pci_driver *driver; /**< PCI driver used in probing */
uint16_t max_vfs; /**< sriov enable if not zero */
- enum rte_
kernel_driver kdrv;
/**< Kernel driver passthrough */
+ enum rte_
pci_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 */
char name[PCI_PRI_STR_SIZE+1]; /**< PCI location (ASCII) */
struct rte_intr_handle vfio_req_intr_handle;
/**< Handler of VFIO request interrupt */