From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 01/2] vfio: expose clear group function for internal usages Date: Fri, 12 Jan 2018 17:36:14 +0100 Message-ID: <1811467.p4hthpzDLK@xps> References: <1512642493-14609-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, shreyansh.jain@nxp.com To: Hemant Agrawal , anatoly.burakov@intel.com Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 2FB522951 for ; Fri, 12 Jan 2018 17:36:44 +0100 (CET) In-Reply-To: <1512642493-14609-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 07/12/2017 11:28, Hemant Agrawal: > other vfio based module e.g. fslmc will also need to use > the clear_group call. > So, exposing it and renaming it to *rte_vfio_clear_group* > > Signed-off-by: Hemant Agrawal > --- > --- a/lib/librte_eal/linuxapp/eal/eal_vfio.h > +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.h > @@ -179,7 +179,7 @@ vfio_get_group_fd(int iommu_group_no); > > /* remove group fd from internal VFIO group fd array */ > int > -clear_group(int vfio_group_fd); > +rte_vfio_clear_group(int vfio_group_fd); The function should be moved to lib/librte_eal/common/include/rte_vfio.h and an empty implementation must be added for BSD. Related note: in drivers/bus/fslmc/fslmc_vfio.h there is #include "eal_vfio.h" Can it be removed?