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 1820316E; Fri, 21 Jul 2017 16:38:24 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B57DF20AD9; Fri, 21 Jul 2017 10:38:23 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 21 Jul 2017 10:38:23 -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=DO8Fu9dgqShqn/r NN9RJ5We//hzBtZ/O5OqnN+1QG10=; b=TDfUmjTfyf7cg69lIlVEwT9JshxQwYN xkVIaR96LjHE0lrsT92OzbZcCyeqC5/OrsP8tDVXKJ1anEondLv8GWY63Ny9smRF d2oVc1HpkY7nHGnVJ5mhVc6sSUxtacpNgzqG7fiT5KSRDTD46Ja60iMhccy49UrP ya1njKUOBQsU= 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=DO8Fu9dgqShqn/rNN9RJ5We//hzBtZ/O5OqnN+1QG10=; b=J7HgQRho 8TGcAXOmdiouF+C5Qwt9piOPhWoLbFgjjqLhMi4iMrfjtP2k341NPjdt5G3L0Aws 94gJlBz+N/F/NYfxc4fZzx92n75n+WBx7Ltg6LBZ8Ijc98cvtoIMAT/KSqICBaq8 dcyk8BCJMxo5Jk3gw+/ENsQSprbdIUeKB5v+BOy09MZfVrO6JuXwkmvg2rSUuRab NsKz+SgAwPF4KxTvuzjDaGfgGppJYGK+O/DQIUP/l2PnXjCD0UXZ+rgqJKF9kiwv /yTaeYdK03mBK10diw+SXleed2EjFJIK7O+ewCCGWPqmBJIXkh2JEvxcbox8eBXz +/bCyLyEu8x3wg== X-ME-Sender: X-Sasl-enc: gLJ4PQ6IbAM+waSPZpAsHSukDBgCNjAq3TeAYLF4gfb1 1500647903 Received: from xps.localnet (bzq-164-168-31-206.red.bezeqint.net [31.168.164.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 51F1E7E312; Fri, 21 Jul 2017 10:38:23 -0400 (EDT) From: Thomas Monjalon To: Hemant Agrawal Cc: dev@dpdk.org, slawomirx.mrozowicz@intel.com, cristian.dumitrescu@intel.com, stable@dpdk.org Date: Fri, 21 Jul 2017 17:38:21 +0300 Message-ID: <11060553.V3FFf1BMrP@xps> In-Reply-To: <1500451990-31199-1-git-send-email-hemant.agrawal@nxp.com> References: <1500280631-6634-1-git-send-email-hemant.agrawal@nxp.com> <1500451990-31199-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 v3] examples/qos_sched: fix core limit for lower num of lcore 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: Fri, 21 Jul 2017 14:38:24 -0000 19/07/2017 11:13, Hemant Agrawal: > APP_MAX_LCORES is hardcoded as 64. > This will cause build err when RTE_MAX_LCORE is less then 64. > > "args.c:127:22: error: iteration 8 invokes undefined behavior > [-Werror=aggressive-loop-optimizations] > if (cfg->lcore_role[i] == ROLE_RTE) > ~~~~~~~~~~~~~~~^~~ > args.c:126:2: note: within this loop > for (i = 0; i < APP_MAX_LCORE; i++) {" > > Fixes: d52b5e735aa3 ("examples/qos_sched: fix lcore limit") > Cc: stable@dpdk.org > > Signed-off-by: Hemant Agrawal > --- > v3: fix as per review comment of Thomas Applied, thanks