02/05/2019 09:43, Yongseok Koh:
> Mellanox mlx4/5 PMD doesn't need to be detached from kernel driver and
> attached to VFIO/UIO. Control path still goes through the existing kernel
> drivers, which is mlx4_core/mlx5_core.

The real change here is to handle RTE_PCI_DRV_IOVA_AS_VA
with Mellanox kernel drivers.
It think it should be explained in the commit log,
because there is no other reason for not using RTE_KDRV_UNKNOWN.

> @@ -568,7 +571,8 @@ pci_one_device_has_iova_va(void)
>       FOREACH_DRIVER_ON_PCIBUS(drv) {
>               if (drv && drv->drv_flags & RTE_PCI_DRV_IOVA_AS_VA) {
>                       FOREACH_DEVICE_ON_PCIBUS(dev) {
> -                             if (dev->kdrv == RTE_KDRV_VFIO &&
> +                             if ((dev->kdrv == RTE_KDRV_VFIO ||
> +                                  dev->kdrv == RTE_KDRV_NIC_MLX) &&
>                                   rte_pci_match(drv, dev))
>                                       return 1;
>                       }



Reply via email to