[dpdk-dev] [PATCH] igb_uio: remove PCI reset during uio device open

Shijith Thotton shijith.thotton at caviumnetworks.com
Tue Sep 19 12:24:13 CEST 2017


Issuing reset during uio device open caused PMD init failure for some
NIC VFs (i40, ixgbe, qede) in host. So this initial reset is removed.
Bus master enable is kept as part of open since we disable it in uio
device release.

Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of device file")
Cc: stable at dpdk.org

Signed-off-by: Shijith Thotton <shijith.thotton at caviumnetworks.com>
---
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index 07a19a3..a6c2996 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -179,9 +179,7 @@ struct rte_uio_pci_dev {
 	struct rte_uio_pci_dev *udev = info->priv;
 	struct pci_dev *dev = udev->pdev;
 
-	pci_reset_function(dev);
-
-	/* set bus master, which was cleared by the reset function */
+	/* enable bus mastering on the device */
 	pci_set_master(dev);
 
 	return 0;
-- 
1.8.3.1



More information about the dev mailing list