summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlejandro Lucero <alejandro.lucero@netronome.com>2018-10-05 13:45:27 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-28 22:07:13 +0100
commitf7378a03d18d186b0c53f57f5bcc939e5c5c227c (patch)
tree06ea31795b791fe6a8f441ceb7c8e98da70b9092 /drivers
parent388022d5d09416f1bef27e1704a59c8047a1f5a6 (diff)
downloaddpdk-f7378a03d18d186b0c53f57f5bcc939e5c5c227c.zip
dpdk-f7378a03d18d186b0c53f57f5bcc939e5c5c227c.tar.gz
dpdk-f7378a03d18d186b0c53f57f5bcc939e5c5c227c.tar.xz
net/nfp: support IOVA VA mode
NFP can handle IOVA as VA. It requires to check those IOVAs being in the supported range what is done during initialization. Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/nfp/nfp_net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c
index b5b98d6..bab1f68 100644
--- a/drivers/net/nfp/nfp_net.c
+++ b/drivers/net/nfp/nfp_net.c
@@ -3290,14 +3290,16 @@ static int eth_nfp_pci_remove(struct rte_pci_device *pci_dev)
static struct rte_pci_driver rte_nfp_net_pf_pmd = {
.id_table = pci_id_nfp_pf_net_map,
- .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,
+ .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC |
+ RTE_PCI_DRV_IOVA_AS_VA,
.probe = nfp_pf_pci_probe,
.remove = eth_nfp_pci_remove,
};
static struct rte_pci_driver rte_nfp_net_vf_pmd = {
.id_table = pci_id_nfp_vf_net_map,
- .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,
+ .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC |
+ RTE_PCI_DRV_IOVA_AS_VA,
.probe = eth_nfp_pci_probe,
.remove = eth_nfp_pci_remove,
};