From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] examples/load_balancer: enable the build for lesser lcores Date: Wed, 19 Jul 2017 08:21:06 +0300 Message-ID: <1782606.ZZX3YYOCMi@xps> References: <1500280902-7333-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 To: Hemant Agrawal Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 2BD16374F for ; Wed, 19 Jul 2017 07:21:10 +0200 (CEST) In-Reply-To: <1500280902-7333-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" 17/07/2017 11:41, Hemant Agrawal: > --- a/examples/load_balancer/main.h > +++ b/examples/load_balancer/main.h > #ifndef APP_MAX_IO_LCORES > +#if (APP_MAX_LCORES > 16) > #define APP_MAX_IO_LCORES 16 > +#else > +#define APP_MAX_IO_LCORES APP_MAX_LCORES > #endif > -#if (APP_MAX_IO_LCORES > APP_MAX_LCORES) > -#error "APP_MAX_IO_LCORES is too big" > #endif [...] > #ifndef APP_MAX_WORKER_LCORES > +#if (APP_MAX_LCORES > 16) > #define APP_MAX_WORKER_LCORES 16 > +#else > +#define APP_MAX_WORKER_LCORES APP_MAX_LCORES > #endif > -#if (APP_MAX_WORKER_LCORES > APP_MAX_LCORES) > -#error "APP_MAX_WORKER_LCORES is too big" > #endif Why removing the checks > APP_MAX_LCORES ?