From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8294320937; Wed, 19 Jul 2017 01:21:10 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 19 Jul 2017 01:21:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=aPCxjJ9hzBDLozu Qt4F5JgF3CHKbf78iXWQb+xlN+aw=; b=i78XlUrZkZEG241kYb8VO04Zj93nb5+ pCKM+o8lS8NjJ9+Gt1opSwQPpPiOttCkD7/+sdq4KetVuHI8KYx/jtMXyNUEQx79 P7i2bCkXjlUL/nabvqTXTzs1zDtVPPQuZFGCk+0mX9VRRX9CVAJFqVg38H6fL4cq emaATdqbcqXI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=aPCxjJ9hzBDLozuQt4F5JgF3CHKbf78iXWQb+xlN+aw=; b=q4lHRnDx iYkpeGof5AGHs5JDWkbw8Hf4lTi615ajWkg/IMppjgUIl2etcYvz9fxZs6HkmV+0 +v2OUMsKb97aGi3J0wwvg8k1S4x7Cp4CBpz5z39qJlNaZlmPcbhXzBW2StPk0H+w AAWL253DQGKBBXNqlwBdq5Km3Oj3o/0SrRCXW8GxMCjKj35nvj/n1ec6QxI7Js6A 2tCviwiq5CrGaQToqnNnMFmxg8VjVU2ps/NYo3bNBYOkkmAfraO33UTAGcKPVXQl l1qtqfzcakRjwTq5X960iBBAtUDdKuovMqd+d/9vU4uiXTQ9Nw84TtrYvtnqT/M2 r7wnsn3UagGW1w== X-ME-Sender: X-Sasl-enc: dhaygun90KShOdUp01fGPzSTEl1WY8zJIenUNcIeQWpY 1500441669 Received: from xps.localnet (unknown [37.165.12.175]) by mail.messagingengine.com (Postfix) with ESMTPA id A87C624752; Wed, 19 Jul 2017 01:21:09 -0400 (EDT) From: Thomas Monjalon To: Hemant Agrawal Cc: dev@dpdk.org Date: Wed, 19 Jul 2017 08:21:06 +0300 Message-ID: <1782606.ZZX3YYOCMi@xps> In-Reply-To: <1500280902-7333-1-git-send-email-hemant.agrawal@nxp.com> References: <1500280902-7333-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/load_balancer: enable the build for lesser lcores X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 05:21:11 -0000 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 ?