From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shijith Thotton Subject: Re: i40e igb_uio: reset pci on process exit Date: Mon, 29 May 2017 16:31:48 +0530 Message-ID: <20170529110141.GB28265@localhost.localdomain> References: <106841857.Z7q1jSDIte@polaris> <6458984.zlYVzvDLUS@polaris> <20170529094858.GA28265@localhost.localdomain> <2463262.6ozr8bnjWv@polaris> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stephen Hemminger , dev@dpdk.org, Ferruh Yigit , Qi Zhang , Wenzhuo Lu To: Gregory Etelson Return-path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0075.outbound.protection.outlook.com [104.47.38.75]) by dpdk.org (Postfix) with ESMTP id 120152BA3 for ; Mon, 29 May 2017 13:02:08 +0200 (CEST) Content-Disposition: inline In-Reply-To: <2463262.6ozr8bnjWv@polaris> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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