summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Lucero <alejandro.lucero@netronome.com>2018-07-10 18:25:52 +0100
committerYongseok Koh <yskoh@mellanox.com>2018-08-24 10:15:46 -0700
commit054298d003584cd5709571b9df5e35f293c5354c (patch)
tree3378d421fb2383899a210400e712094c3dfecf6b
parent1b0deb27e144107939d3ac1119723b4a0e51a191 (diff)
downloaddpdk-stable-054298d003584cd5709571b9df5e35f293c5354c.zip
dpdk-stable-054298d003584cd5709571b9df5e35f293c5354c.tar.gz
dpdk-stable-054298d003584cd5709571b9df5e35f293c5354c.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. Applicable to v17.11.3 only. Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com> Acked-by: Eelco Chaudron <echaudro@redhat.com>
-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 d2a240a..8ab28dd 100644
--- a/drivers/net/nfp/nfp_net.c
+++ b/drivers/net/nfp/nfp_net.c
@@ -3057,14 +3057,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,
};