bus/pci: remove Mellanox kernel driver type
This reverts commit0cb86518db
. The PCI bus now reports DC when faced with a device bound to an unknown driver and, in such a case, the IOVA mode is selected against physical address availability. As a consequence, there is no reason for this special case for Mellanox drivers. Fixes:703458e19c
("bus/pci: consider only usable devices for IOVA mode") Signed-off-by: David Marchand <david.marchand@redhat.com> Reviewed-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
parent
829d5116f9
commit
62f8f5ace5
@ -329,9 +329,6 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)
|
||||
dev->kdrv = RTE_KDRV_IGB_UIO;
|
||||
else if (!strcmp(driver, "uio_pci_generic"))
|
||||
dev->kdrv = RTE_KDRV_UIO_GENERIC;
|
||||
else if (!strcmp(driver, "mlx4_core") ||
|
||||
!strcmp(driver, "mlx5_core"))
|
||||
dev->kdrv = RTE_KDRV_NIC_MLX;
|
||||
else
|
||||
dev->kdrv = RTE_KDRV_UNKNOWN;
|
||||
} else
|
||||
@ -591,11 +588,6 @@ pci_device_iova_mode(const struct rte_pci_driver *pdrv,
|
||||
break;
|
||||
}
|
||||
|
||||
case RTE_KDRV_NIC_MLX:
|
||||
if ((pdrv->drv_flags & RTE_PCI_DRV_IOVA_AS_VA) == 0)
|
||||
iova_mode = RTE_IOVA_PA;
|
||||
break;
|
||||
|
||||
case RTE_KDRV_IGB_UIO:
|
||||
case RTE_KDRV_UIO_GENERIC:
|
||||
iova_mode = RTE_IOVA_PA;
|
||||
|
@ -63,7 +63,6 @@ enum rte_kernel_driver {
|
||||
RTE_KDRV_VFIO,
|
||||
RTE_KDRV_UIO_GENERIC,
|
||||
RTE_KDRV_NIC_UIO,
|
||||
RTE_KDRV_NIC_MLX,
|
||||
RTE_KDRV_NONE,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user