From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [ [PATCH v2] 07/13] linuxapp: eal: arm: Always return 0 for rte_eal_iopl_init() Date: Mon, 14 Dec 2015 20:07:18 +0530 Message-ID: <20151214143717.GD30309@localhost.localdomain> References: <1450098032-21198-1-git-send-email-sshukla@mvista.com> <1450098032-21198-8-git-send-email-sshukla@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org To: Santosh Shukla Return-path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0075.outbound.protection.outlook.com [157.56.111.75]) by dpdk.org (Postfix) with ESMTP id 524952716 for ; Mon, 14 Dec 2015 15:38:01 +0100 (CET) Content-Disposition: inline In-Reply-To: <1450098032-21198-8-git-send-email-sshukla@mvista.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Dec 14, 2015 at 06:30:26PM +0530, Santosh Shukla wrote: > iopl() syscall not supported in linux-arm/arm64 so always return 0 value. > > Signed-off-by: Santosh Shukla > --- > lib/librte_eal/linuxapp/eal/eal.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c > index 635ec36..2617037 100644 > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > @@ -716,6 +716,9 @@ rte_eal_iopl_init(void) > return -1; > return 0; > #else > +#if defined(RTE_ARCH_ARM) || defined(RTE_ARCH_ARM64) > + return 0; /* iopl syscall not supported for ARM/ARM64 */ I guess for other architectures also iopl not supported.I think better to move this function to eal. Else this function will return 'true' for ppc64 or have at least postive logic, #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32) > +#endif > return -1; > #endif > } > -- > 1.7.9.5 >