struct rte_pci_id id; /**< PCI ID. */
struct rte_pci_resource mem_resource[PCI_MAX_RESOURCE]; /**< PCI Memory Resource */
struct rte_intr_handle intr_handle; /**< Interrupt handle */
- const struct rte_pci_driver *driver; /**< Associated driver */
+ struct rte_pci_driver *driver; /**< Associated driver */
uint16_t max_vfs; /**< sriov enable if not zero */
int numa_node; /**< NUMA node connection */
struct rte_devargs *devargs; /**< Device user arguments */
DEPDIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += lib/librte_mempool lib/librte_mbuf
DEPDIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += lib/librte_net lib/librte_malloc
-CFLAGS_virtio_ethdev.o += -Wno-cast-qual
-
include $(RTE_SDK)/mk/rte.lib.mk
char filename[PATH_MAX];
unsigned long start, size;
unsigned int uio_num;
- struct rte_pci_driver *pci_drv =
- (struct rte_pci_driver *)pci_dev->driver;
if (get_uio_dev(&pci_dev->addr, dirname, sizeof(dirname), &uio_num) < 0)
return -1;
}
pci_dev->intr_handle.type = RTE_INTR_HANDLE_UIO;
- pci_drv->drv_flags |= RTE_PCI_DRV_INTR_LSC;
+ pci_dev->driver->drv_flags |= RTE_PCI_DRV_INTR_LSC;
return 0;
}
char pci_id[16];
int found = 0;
size_t linesz;
- struct rte_pci_driver *pci_drv =
- (struct rte_pci_driver *)pci_dev->driver;
snprintf(pci_id, sizeof(pci_id), PCI_PRI_FMT,
pci_dev->addr.domain,
start, size);
/* can't support lsc interrupt without uio */
- pci_drv->drv_flags &= ~RTE_PCI_DRV_INTR_LSC;
+ pci_dev->driver->drv_flags &= ~RTE_PCI_DRV_INTR_LSC;
return 0;
}