From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by dpdk.org (Postfix) with ESMTP id 766784C93 for ; Tue, 14 Aug 2018 13:12:42 +0200 (CEST) Received: from 1.general.paelzer.uk.vpn ([10.172.196.172] helo=lap.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fpXAU-0000wO-La; Tue, 14 Aug 2018 11:07:18 +0000 From: Christian Ehrhardt To: Gavin Hu Cc: Honnappa Nagarahalli , Shreyansh Jain , dpdk stable Date: Tue, 14 Aug 2018 13:06:26 +0200 Message-Id: <20180814110651.25277-23-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180814110651.25277-1-christian.ehrhardt@canonical.com> References: <20180814110651.25277-1-christian.ehrhardt@canonical.com> Subject: [dpdk-stable] patch 'net/dpaa2: remove loop for unused pool entries' has been queued to stable release 18.05.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, 14 Aug 2018 11:12:42 -0000 Hi, FYI, your patch has been queued to stable release 18.05.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 08/16/18. So please shout if anyone has objections. Thanks. Christian Ehrhardt --- >>From 89861471ad75f2267f3e574155d867426907b251 Mon Sep 17 00:00:00 2001 From: Gavin Hu Date: Tue, 31 Jul 2018 15:51:37 +0800 Subject: [PATCH] net/dpaa2: remove loop for unused pool entries [ upstream commit e94be227b7ea025d8fd0ee5d79052a8c31d432c6 ] Currently only one buffer pool is configured and in use, looping for up to maxmum 8 times is unnecessary and might be buggy as assigned uninititalized values. The fix is to loop for the configured times with initialize with valid values. Fixes: 16bbc98a3e ("bus/fslmc: update MC to 10.3.x") Signed-off-by: Gavin Hu Reviewed-by: Honnappa Nagarahalli Acked-by: Shreyansh Jain --- drivers/net/dpaa2/mc/dpni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/mc/dpni.c b/drivers/net/dpaa2/mc/dpni.c index 69cf119ce..9f228169a 100644 --- a/drivers/net/dpaa2/mc/dpni.c +++ b/drivers/net/dpaa2/mc/dpni.c @@ -198,7 +198,7 @@ int dpni_set_pools(struct fsl_mc_io *mc_io, token); cmd_params = (struct dpni_cmd_set_pools *)cmd.params; cmd_params->num_dpbp = cfg->num_dpbp; - for (i = 0; i < DPNI_MAX_DPBP; i++) { + for (i = 0; i < cmd_params->num_dpbp; i++) { cmd_params->pool[i].dpbp_id = cpu_to_le16(cfg->pools[i].dpbp_id); cmd_params->pool[i].priority_mask = -- 2.17.1