From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: i40e igb_uio: reset pci on process exit Date: Thu, 25 May 2017 11:42:42 -0700 Message-ID: <20170525114242.3c6ac1b7@xeon-e3> References: <106841857.Z7q1jSDIte@polaris> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Ferruh Yigit , Qi Zhang , Wenzhuo Lu To: Gregory Etelson Return-path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 4619499D5 for ; Thu, 25 May 2017 20:42:50 +0200 (CEST) Received: by mail-pf0-f178.google.com with SMTP id n23so174903494pfb.2 for ; Thu, 25 May 2017 11:42:50 -0700 (PDT) In-Reply-To: <106841857.Z7q1jSDIte@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 Wed, 24 May 2017 14:22:11 +0300 Gregory Etelson wrote: > > +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); > + dev_info(&dev->dev, "pci_reset_function %s \n", > + ret == 0 ? "succeded" : "failed"); > + return 0; > +} > + > + Patch in general looks ok, but: * no Signed-off * whitespace issues * doesn't pass kernel coding style * don't log on success, why log at all??