From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 93A3E32A5 for ; Tue, 20 Nov 2018 20:14:41 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 046903082211; Tue, 20 Nov 2018 19:14:41 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E46960141; Tue, 20 Nov 2018 19:14:39 +0000 (UTC) From: Kevin Traynor To: Tomasz Duszynski Cc: dpdk stable Date: Tue, 20 Nov 2018 19:12:05 +0000 Message-Id: <20181120191252.30277-15-ktraynor@redhat.com> In-Reply-To: <20181120191252.30277-1-ktraynor@redhat.com> References: <20181120191252.30277-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Tue, 20 Nov 2018 19:14:41 +0000 (UTC) Subject: [dpdk-stable] patch 'net/mvpp2: fix array initialization' has been queued to stable release 18.08.1 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: Tue, 20 Nov 2018 19:14:42 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 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/23/18. 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. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From 0751c74a1eb92c8e8fbcd38d568c863d2977bc46 Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Fri, 24 Aug 2018 20:30:00 +0200 Subject: [PATCH] net/mvpp2: fix array initialization [ upstream commit fe37bf0f7d43ceab88a3b71ef1b13d509c1b7bb9 ] Fix used_bpools array initialization by using range initializer. This way all necessary variables are properly initialized regardless of PP2_NUM_PKT_PROC value. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") Signed-off-by: Tomasz Duszynski --- drivers/net/mvpp2/mrvl_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index a2d0576eb..610c3c40d 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -87,6 +87,5 @@ static int used_hifs = MRVL_MUSDK_HIFS_RESERVED; static struct pp2_hif *hifs[RTE_MAX_LCORE]; static int used_bpools[PP2_NUM_PKT_PROC] = { - MRVL_MUSDK_BPOOLS_RESERVED, - MRVL_MUSDK_BPOOLS_RESERVED + [0 ... PP2_NUM_PKT_PROC - 1] = MRVL_MUSDK_BPOOLS_RESERVED }; -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-20 17:53:07.824029244 +0000 +++ 0015-net-mvpp2-fix-array-initialization.patch 2018-11-20 17:53:07.000000000 +0000 @@ -1,14 +1,15 @@ -From fe37bf0f7d43ceab88a3b71ef1b13d509c1b7bb9 Mon Sep 17 00:00:00 2001 +From 0751c74a1eb92c8e8fbcd38d568c863d2977bc46 Mon Sep 17 00:00:00 2001 From: Tomasz Duszynski Date: Fri, 24 Aug 2018 20:30:00 +0200 Subject: [PATCH] net/mvpp2: fix array initialization +[ upstream commit fe37bf0f7d43ceab88a3b71ef1b13d509c1b7bb9 ] + Fix used_bpools array initialization by using range initializer. This way all necessary variables are properly initialized regardless of PP2_NUM_PKT_PROC value. Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton") -Cc: stable@dpdk.org Signed-off-by: Tomasz Duszynski --- @@ -16,10 +17,10 @@ 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c -index 8e1a32f41..fdf416b04 100644 +index a2d0576eb..610c3c40d 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c -@@ -85,6 +85,5 @@ static int used_hifs = MRVL_MUSDK_HIFS_RESERVED; +@@ -87,6 +87,5 @@ static int used_hifs = MRVL_MUSDK_HIFS_RESERVED; static struct pp2_hif *hifs[RTE_MAX_LCORE]; static int used_bpools[PP2_NUM_PKT_PROC] = { - MRVL_MUSDK_BPOOLS_RESERVED,