igb_uio: remove device reset in open
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Oct 2017 16:55:11 +0000 (17:55 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 24 Oct 2017 21:34:44 +0000 (22:34 +0100)
Remove device reset during application start, the reset for application
exit still there.

Reset in open removed because of following comments:
1- Device reset not completed when VF driver loaded, which cause VF PMD
   initialization error.
   Adding delay can solve the issue but will increase driver load time.

2- Reset will be issues all devices unconditionally, not very efficient
   way.

Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of device file")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Harish Patil <harish.patil@cavium.com>
Tested-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Tested-by: Jingjing Wu <jingjing.wu@intel.com>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c

index f7ef825..fd320d8 100644 (file)
@@ -336,8 +336,6 @@ igbuio_pci_open(struct uio_info *info, struct inode *inode)
        struct pci_dev *dev = udev->pdev;
        int err;
 
-       pci_reset_function(dev);
-
        /* set bus master, which was cleared by the reset function */
        pci_set_master(dev);