summaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/mlx4.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2019-05-02 02:07:54 -0700
committerThomas Monjalon <thomas@monjalon.net>2019-06-04 00:34:54 +0200
commit69c06d0e357ed0064b498d510d169603cf7308cd (patch)
treecbb64cf703b4029737d81b24f008ecfb799be1f7 /drivers/net/mlx4/mlx4.c
parent0cb86518db57d35e0abc14d6703fad561a0310e2 (diff)
downloaddpdk-69c06d0e357ed0064b498d510d169603cf7308cd.zip
dpdk-69c06d0e357ed0064b498d510d169603cf7308cd.tar.gz
dpdk-69c06d0e357ed0064b498d510d169603cf7308cd.tar.xz
net/mlx: support IOVA VA mode
Set RTE_PCI_DRV_IOVA_AS_VA to driver's drv_flags as device's IOMMU takes virtual address. Cc: stable@dpdk.org Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx4/mlx4.c')
-rw-r--r--drivers/net/mlx4/mlx4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c
index 2c33fcb..f7cd0c9 100644
--- a/drivers/net/mlx4/mlx4.c
+++ b/drivers/net/mlx4/mlx4.c
@@ -1136,8 +1136,8 @@ static struct rte_pci_driver mlx4_driver = {
},
.id_table = mlx4_pci_id_map,
.probe = mlx4_pci_probe,
- .drv_flags = RTE_PCI_DRV_INTR_LSC |
- RTE_PCI_DRV_INTR_RMV,
+ .drv_flags = RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_INTR_RMV |
+ RTE_PCI_DRV_IOVA_AS_VA,
};
#ifdef RTE_IBVERBS_LINK_DLOPEN