From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E81F9A0527 for ; Mon, 9 Nov 2020 19:42:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0D586883; Mon, 9 Nov 2020 19:42:00 +0100 (CET) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by dpdk.org (Postfix) with ESMTP id 569426883 for ; Mon, 9 Nov 2020 19:41:59 +0100 (CET) Received: by mail-wm1-f44.google.com with SMTP id c9so442877wml.5 for ; Mon, 09 Nov 2020 10:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=75Tm1ZU3yUqFw7FR10lsvNzhdmivVxgYkM+8qSJH0WU=; b=lF66APGxeQ+QMYiMH2Ut9bXd9jcM7q5T2akCWkrxmW3qMvis2SMs1WIWkguss1gQRI VpY1qMxUacTorSnf67gWGTwQeUjanxThmwCvEafujQyeywB9TcpxEihtOZ+G3gAafpY7 PhIzbSnY10SzgzS0p39Wlp5z97pb5J46Gg3Eip/JKejjuC1JsIFQAELIhCxkn8R++8qy IhuI7kZKxMtODwtnLgNf9NcuHPfrKeKZhTL6BT/1GJ5OLW5R3i1O6RlVbH1Cl+sP8oyc z3mcXmS9km7F/Ym3QqV7FYMOPVqCLEzQKc5SU7e7U675g52GirMuTr0LJFjguon4K1Sg hu/Q== 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:mime-version:content-transfer-encoding; bh=75Tm1ZU3yUqFw7FR10lsvNzhdmivVxgYkM+8qSJH0WU=; b=OYV5igYIBJRzkC1QtmWsspt834SMrqsZRCnAyLfE6zUrAeLsTceKnaxiI7o6KY6Jyo KWxzIcc04cjTxsYjYj7/8uwsH4HQk17lD+uOjSyqVzkn6nyQCISYEtkGuj5PabH4q2j7 rr9ZKqSK0T5ClywgZ4PVmJVUTcluU3Qlk20YbLfMsi375mE7smRSBXUQO6aGwuIzy/CF jotbigV57bUWeMHHraL92aR3o8Jx3AW6eldchF3Y6IloAk9ZrYFJ5oPQuU/WzUOJI+DQ sw7cXLRoXtUT1P+yoQeKPdiU5aEucpVSvp9rekmor9B+ORU0zChs7r93MOsT7mt6GjNy 5yNg== X-Gm-Message-State: AOAM530FO82rKBcXwSihGahKSqMw/T8fxb4J1pSEWeYxwDPKAZ/1OR/f LspKMSqBlGNd5gPiZjpdRU4= X-Google-Smtp-Source: ABdhPJwIr7gExjVv/Ay7qUqAtBEjuYqKM1hKu16fQk3bB3voiEnDqsQqpx5sbZhaIIbO/A7eUfd3zg== X-Received: by 2002:a1c:6043:: with SMTP id u64mr529674wmb.166.1604947318091; Mon, 09 Nov 2020 10:41:58 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id l16sm14129591wrx.5.2020.11.09.10.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 10:41:57 -0800 (PST) From: luca.boccassi@gmail.com To: Honnappa Nagarahalli Cc: Ruifeng Wang , Lukasz Wojciechowski , David Marchand , dpdk stable Date: Mon, 9 Nov 2020 18:39:59 +0000 Message-Id: <20201109184111.3463090-11-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201109184111.3463090-1-luca.boccassi@gmail.com> References: <20201028104606.3504127-207-luca.boccassi@gmail.com> <20201109184111.3463090-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'examples/performance-thread: fix build with low core count' has been queued to stable release 19.11.6 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/11/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/4fa4a861588e9d5edf600903a41baa7df4bb60fb Thanks. Luca Boccassi --- >From 4fa4a861588e9d5edf600903a41baa7df4bb60fb Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Fri, 16 Oct 2020 01:03:49 -0500 Subject: [PATCH] examples/performance-thread: fix build with low core count [ upstream commit 4e3b2d4c76e6249e44b92ffa7c62c031eb23af81 ] When the value of RTE_MAX_LCORE is small, it results in the following compilation error. ../examples/performance-thread/l3fwd-thread/main.c:2338:34: error: iteration 4 invokes undefined behavior [-Werror=aggressive-loop-optimizations] Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app") Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Tested-by: Lukasz Wojciechowski Reviewed-by: Lukasz Wojciechowski Reviewed-by: David Marchand --- examples/performance-thread/l3fwd-thread/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c index f58a70b77f..c527bb0c79 100644 --- a/examples/performance-thread/l3fwd-thread/main.c +++ b/examples/performance-thread/l3fwd-thread/main.c @@ -599,8 +599,8 @@ struct thread_rx_conf rx_thread[MAX_RX_THREAD]; struct thread_tx_conf { struct thread_conf conf; - uint16_t tx_queue_id[RTE_MAX_LCORE]; - struct mbuf_table tx_mbufs[RTE_MAX_LCORE]; + uint16_t tx_queue_id[RTE_MAX_ETHPORTS]; + struct mbuf_table tx_mbufs[RTE_MAX_ETHPORTS]; struct rte_ring *ring; struct lthread_cond **ready; -- 2.27.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-11-09 18:40:11.659352168 +0000 +++ 0011-examples-performance-thread-fix-build-with-low-core-.patch 2020-11-09 18:40:11.083310535 +0000 @@ -1 +1 @@ -From 4e3b2d4c76e6249e44b92ffa7c62c031eb23af81 Mon Sep 17 00:00:00 2001 +From 4fa4a861588e9d5edf600903a41baa7df4bb60fb Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 4e3b2d4c76e6249e44b92ffa7c62c031eb23af81 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -26 +27 @@ -index e96076f290..7bf61db6be 100644 +index f58a70b77f..c527bb0c79 100644