drivers/dma: cleanup PCI probing in Intel drivers
Subsystems (2)
PATCH 1/1 drivers/dma: cleanup PCI probing in Intel drivers
Drivers are not responsible for setting the rte_device driver reference since this has been factorized in EAL.
Fixes f282771a04ef ("bus: factorize driver reference")
Signed-off-by David Marchand <[email protected]>
--- drivers/dma/idxd/idxd_pci.c | 3 +-- drivers/dma/ioat/ioat_dmadev.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/dma/idxd/idxd_pci.c +1 -2
@@ -323,7 +323,7 @@ init_pci_device(struct rte_pci_device *dev, struct idxd_dmadev *idxd, }static int -idxd_dmadev_probe_pci (struct rte_pci_driver *drv,struct rte_pci_device *dev) +idxd_dmadev_probe_pci(struct rte_pci_driver *drv __rte_unused, struct rte_pci_device *dev) {struct idxd_dmadev idxd = {0 };uint8_t nb_wqs;
@@ -333,7 +333,6 @@ idxd_dmadev_probe_pci(struct rte_pci_driver *drv, struct rte_pci_device *dev)rte_pci_device_name (&dev->addr, name,sizeof (name));IDXD_PMD_INFO ("Init %s on NUMA node %d" , name, dev->device.numa_node); - dev->device.driver = &drv->driver;if (rte_eal_process_type () !=RTE_PROC_PRIMARY ) {char qname[32 ];
drivers/dma/ioat/ioat_dmadev.c +1 -2
@@ -714,14 +714,13 @@ ioat_dmadev_destroy(const char *name)/* Probe DMA device. */ static int -ioat_dmadev_probe (struct rte_pci_driver *drv,struct rte_pci_device *dev) +ioat_dmadev_probe(struct rte_pci_driver *drv __rte_unused, struct rte_pci_device *dev) {char name[32 ];rte_pci_device_name (&dev->addr, name,sizeof (name));IOAT_PMD_INFO ("Init %s on NUMA node %d" , name, dev->device.numa_node); - dev->device.driver = &drv->driver;return ioat_dmadev_create (name, dev); }
Signature · 1 line
2.54.0
Acked-by Chengwen Feng <[email protected]>
Quoted 6 lines · David Marchand
Drivers are not responsible for setting the
rte_devicedriver reference since this has been factorized in EAL.Fixes f282771a04ef ("bus: factorize driver reference")Signed-off-by David Marchand <[email protected]>
Acked-by Chengwen Feng <[email protected]>
Quoted 6 lines · David Marchand
Drivers are not responsible for setting the
rte_devicedriver reference since this has been factorized in EAL.Fixes f282771a04ef ("bus: factorize driver reference")Signed-off-by David Marchand <[email protected]>
David Marchand
AppliedQuoted 7 lines · David Marchand
Drivers are not responsible for setting the
rte_devicedriver reference since this has been factorized in EAL.Fixes f282771a04ef ("bus: factorize driver reference")Signed-off-by David Marchand <[email protected]>
Applied, thanks for the review.
Signature · 1 line
David Marchand