From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id 0C1A59AF0 for ; Tue, 10 May 2016 14:55:40 +0200 (CEST) Received: from jvn (dynamic-109-81-211-184.ipv4.broadband.iol.cz [109.81.211.184]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 3r3zkg3sZRzBkv; Tue, 10 May 2016 14:55:39 +0200 (CEST) Date: Tue, 10 May 2016 14:55:43 +0200 From: Jan Viktorin To: "Burakov, Anatoly" Cc: "dev@dpdk.org" , David Marchand , "Wiles, Keith" , Santosh Shukla , "Stephen Hemminger" Message-ID: <20160510145543.034ce747@jvn> In-Reply-To: References: <1461937456-22943-1-git-send-email-viktorin@rehivetech.com> <1461937456-22943-12-git-send-email-viktorin@rehivetech.com> Organization: RehiveTech X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 11/15] vfio: move global vfio_cfg to eal_vfio.c X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 12:55:40 -0000 On Tue, 10 May 2016 11:56:36 +0000 "Burakov, Anatoly" wrote: > Hi Jan, > > > --- a/lib/librte_eal/linuxapp/eal/eal_vfio.c > > +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.c > > @@ -39,10 +39,282 @@ > > #include > > #include > > #include > > +#include > > > > #include "eal_filesystem.h" > > #include "eal_vfio.h" > > I believe the eal_private.h should be local include (in quotes), like in other places. +1 > > > +/** > > + * Setup vfio_cfg for the device indentified by its address. It > > +discovers > > + * the configured I/O MMU groups or sets a new one for the device. If a > > +new > > + * groups is assigned, the DMA mapping is performed. > > + * Returns 0 on success, a negative value on failure and a positive > > +value in > > + * case the given device cannot be managed this way. > > + */ > > I think it would've been good to fix the typo in the comment ("indentified") :) Ok. Regards Jan > > Thanks, > Anatoly -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic