From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by dpdk.org (Postfix) with ESMTP id E0DBE913F for ; Mon, 21 Aug 2017 11:35:35 +0200 (CEST) Received: by mail-pg0-f42.google.com with SMTP id m133so14719641pga.5 for ; Mon, 21 Aug 2017 02:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kzbCoMfMjNBYhFgvEjI5GnZ4QzTsPPg3U15LstlNSa0=; b=MYvAsLGux9p9jGpkGIg7gQXOHpFaV26TiUssYH2c+Ee/DLPe3/ZUZZL4WwiYrqFC+z zLskkfLZvgbW3BEkVYvW5+ZlD5e0yr4j+MITVsNPxR1lHL1Bu/KtwI61iVSCitpyBudq SWSYHfKRiEXcsjroZ3ay1wO3nMRCGqPWihud51NALYRvHyFiWd23gF9LulcwlP6A7F0J 5Xy+VUpdzwdXyn6TmopEZrkDUirv37pTp7o37AgLzPW6atzvzBz5VS9IpZWQ6Zj/Csjj CB2lYSyCGBIlaiMO4NgF2Ct6d/2np2dnZ/cIwGwL937A2ipmObPqDSGfxX14GsVICUDq ZovA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kzbCoMfMjNBYhFgvEjI5GnZ4QzTsPPg3U15LstlNSa0=; b=OCRXJmEkRqE14ia1Csn+7TZDOtie9plsFjhL3iOylzYsuuCXlz7RSuKT8nzi7E1dI6 XVTIhUtxSM4QIv+wSJyKAF/WvMCKSSLjjBgFg4g6Nu2M4ReiJkAEE0zuwZFxXX3CLzbQ 5bZwM8AN8Eic3uObIvql5ltk66zJ6auxvRel3b3Ja4HzHvH5bSzHh1akg3LOVcBzwwqm McKV8kUV9y8w1N9/vbPVkh5QuJcju0MUT0sRwsETD4+ezS+rclQq4iSdGjfhG7FXnZxl yfIRofqMD2OwbQezWSGk8jHbjxb1CDPKQAJT+r1g3ZyMV/Dyu13rTFED+BX2pqlrMh2o dvhw== X-Gm-Message-State: AHYfb5jyoSHQvXPB4cICpEOhR2x34EjIiutCVKi9fWylecZdxvgq/8nQ Hs0YoLEWGkzVWMU2 X-Received: by 10.98.80.131 with SMTP id g3mr16976531pfj.156.1503308135258; Mon, 21 Aug 2017 02:35:35 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.35.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:35:34 -0700 (PDT) From: Yuanhan Liu To: Hemant Agrawal Cc: dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:43 +0800 Message-Id: <1503307878-16728-29-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'examples/qos_sched: fix build for less lcores' has been queued to stable release 17.05.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 09:35:36 -0000 Hi, FYI, your patch has been queued to stable release 17.05.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From e7abf0e8de18bb922d6c6beae2483bb576678361 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Wed, 19 Jul 2017 13:43:10 +0530 Subject: [PATCH] examples/qos_sched: fix build for less lcores [ upstream commit e481ebfd622c23a1d854cb4655a3534d68d322af ] 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") Signed-off-by: Hemant Agrawal --- examples/qos_sched/main.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/qos_sched/main.h b/examples/qos_sched/main.h index c7490c6..8d02e1a 100644 --- a/examples/qos_sched/main.h +++ b/examples/qos_sched/main.h @@ -69,8 +69,13 @@ extern "C" { #define BURST_TX_DRAIN_US 100 #ifndef APP_MAX_LCORE +#if (RTE_MAX_LCORE > 64) #define APP_MAX_LCORE 64 +#else +#define APP_MAX_LCORE RTE_MAX_LCORE +#endif #endif + #define MAX_DATA_STREAMS (APP_MAX_LCORE/2) #define MAX_SCHED_SUBPORTS 8 #define MAX_SCHED_PIPES 4096 -- 2.7.4