bus/pci: add Mellanox kernel driver type
authorYongseok Koh <yskoh@mellanox.com>
Thu, 2 May 2019 09:07:53 +0000 (02:07 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 3 Jun 2019 22:33:06 +0000 (00:33 +0200)
commit0cb86518db57d35e0abc14d6703fad561a0310e2
tree7a3e46f91b7fac39e187b2b20cb1011a74fdc8ab
parentffadd933acdcb17edf5f825e8321b9ac9cd4bb07
bus/pci: add Mellanox kernel driver type

When checking RTE_PCI_DRV_IOVA_AS_VA flag to determine IOVA mode,
pci_one_device_has_iova_va() returns true only if kernel driver of the
device is vfio. However, 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 driver, which is mlx4_core/mlx5_core. In order
to make RTE_PCI_DRV_IOVA_AS_VA effective for mlx4/mlx5 PMD, a new kernel
driver type has to be introduced.

Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
drivers/bus/pci/linux/pci.c
lib/librte_eal/common/include/rte_dev.h