From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Daley Subject: [PATCH 2/6] net/enic: enable IOVA mode Date: Tue, 25 Sep 2018 19:54:18 -0700 Message-ID: <20180926025422.21912-2-johndale@cisco.com> References: <20180926025422.21912-1-johndale@cisco.com> Cc: dev@dpdk.org, Hyong Youb Kim To: ferruh.yigit@intel.com Return-path: Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) by dpdk.org (Postfix) with ESMTP id 202331B0F9 for ; Wed, 26 Sep 2018 04:54:54 +0200 (CEST) In-Reply-To: <20180926025422.21912-1-johndale@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hyong Youb Kim Cisco VIC models support RTE_IOVA_VA, so enable it. This change allows the driver to work properly when --no-huge is used, in combination with vfio and iommu. Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index b3d57771f..65333c47a 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -1044,7 +1044,8 @@ static int eth_enic_pci_remove(struct rte_pci_device *pci_dev) static struct rte_pci_driver rte_enic_pmd = { .id_table = pci_id_enic_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_enic_pci_probe, .remove = eth_enic_pci_remove, }; -- 2.16.2