PMD already resets PCI during initialization. In my patch, exiting process forced to release it's resources
On Monday, 29 May 2017 14:01:48 IDT Shijith Thotton wrote: > On Mon, May 29, 2017 at 01:01:06PM +0300, Gregory Etelson wrote: > > I still have to support Red Hat 6.x. These system do not have VFIO > > > > IGB_UIO is the only option there. > > > > Also, there was a discussion that claimed IGB_UIO has better performance > > than VFIO. > > > > http://dpdk.org/ml/archives/dev/2014-August/004609.html > > > > Regards, > > Gregory > > > > [..] > >> static int > >> igbuio_pci_open(struct uio_info *info, struct inode *inode) > >> { > >> struct rte_uio_pci_dev *udev = info->priv; > >> struct pci_dev *dev = udev->pdev; > >> > >> return pci_reset_function(dev); > >> } > >> > >> and.. > >> udev->info.open = igbuio_pci_open; > >> > > I was suggesting to make reset part of open. It should work on your setup. > > - udev->info.release = igbuio_pci_release; > + udev->info.open = igbuio_pci_open; > > Shijith >