From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH 01/2] vfio: expose clear group function for internal usages Date: Sun, 14 Jan 2018 18:35:04 +0530 Message-ID: <869d21cd-47fa-3ab1-47fe-4d617457c749@nxp.com> References: <1512642493-14609-1-git-send-email-hemant.agrawal@nxp.com> <1811467.p4hthpzDLK@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Thomas Monjalon , Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0078.outbound.protection.outlook.com [104.47.42.78]) by dpdk.org (Postfix) with ESMTP id E48DE2C57 for ; Sun, 14 Jan 2018 14:05:10 +0100 (CET) In-Reply-To: <1811467.p4hthpzDLK@xps> 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 1/12/2018 10:06 PM, Thomas Monjalon wrote: > 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. > I am sending v2 for that. > Related note: in drivers/bus/fslmc/fslmc_vfio.h there is > #include "eal_vfio.h" > Can it be removed? > Yes but it will be different change. Currently fslmc_vfio.h is is using few "vfio_get_xxx" functions. I will plan that cleanup in different patch.