From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Etelson Subject: Re: i40e igb_uio: reset pci on process exit Date: Fri, 26 May 2017 09:17:33 +0300 Message-ID: <2910302.37N35vC6kd@polaris> References: <106841857.Z7q1jSDIte@polaris> <2080347.1TTqQevoe3@polaris> <20170526060509.GA5157@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Stephen Hemminger , dev@dpdk.org, Ferruh Yigit , Qi Zhang , Wenzhuo Lu To: Shijith Thotton Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id AC3D999E4 for ; Fri, 26 May 2017 08:17:35 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id 7so116166841wmo.1 for ; Thu, 25 May 2017 23:17:35 -0700 (PDT) In-Reply-To: <20170526060509.GA5157@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thank you. Regards, Gregory On Friday, 26 May 2017 09:05:11 IDT Shijith Thotton wrote: > On Fri, May 26, 2017 at 07:30:58AM +0300, Gregory Etelson wrote: > > Hi Gregory, > > The patch is useful for LiquidIO PMD as we can avoid VF FLR request to > PF. One comment inline.. > > [..] > > > > > > > > +static int > > > > +igbuio_pci_release(struct uio_info *info, struct inode *inode) > > > > +{ > > > > + int ret; > > > > + struct rte_uio_pci_dev *udev = info->priv; > > > > + struct pci_dev *dev = udev->pdev; > > > > + ret = __pci_reset_function(dev); > > s/__pci_reset_function/pci_reset_function > > > > > + dev_info(&dev->dev, "pci_reset_function %s \n", > > > > + ret == 0 ? "succeded" : "failed"); > > > > + return 0; > > > > +} > [..] > > Thanks, > Shijith >