From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A606A0A02 for ; Mon, 17 May 2021 18:17:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0119D410EA; Mon, 17 May 2021 18:17:34 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by mails.dpdk.org (Postfix) with ESMTP id 3118040041 for ; Mon, 17 May 2021 18:17:33 +0200 (CEST) Received: from 2.general.paelzer.uk.vpn ([10.172.196.173] helo=Keschdeichel.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lifvx-00005T-0J; Mon, 17 May 2021 16:17:33 +0000 From: Christian Ehrhardt To: Dapeng Yu Cc: Cristian Dumitrescu , dpdk stable Date: Mon, 17 May 2021 18:10:07 +0200 Message-Id: <20210517161039.3132619-178-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517161039.3132619-1-christian.ehrhardt@canonical.com> References: <20210517161039.3132619-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/softnic: fix meter policies initialization' has been queued to stable release 19.11.9 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/19/21. 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/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/d0f7ec0ea253ab908b67c33bf6269a56392211df Thanks. Christian Ehrhardt --- >From d0f7ec0ea253ab908b67c33bf6269a56392211df Mon Sep 17 00:00:00 2001 From: Dapeng Yu Date: Thu, 29 Apr 2021 15:06:14 +0800 Subject: [PATCH] net/softnic: fix meter policies initialization [ upstream commit 9421152d7dcf951aae30c1b22c0c9c63875ff90a ] Initialize meter policy list before use to avoid segment fault Fixes: 0d73ddf25faa ("net/softnic: add meter profile") Signed-off-by: Dapeng Yu Acked-by: Cristian Dumitrescu --- drivers/net/softnic/rte_eth_softnic_meter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_softnic_meter.c index 31a2a0e6d9..4b152abb7a 100644 --- a/drivers/net/softnic/rte_eth_softnic_meter.c +++ b/drivers/net/softnic/rte_eth_softnic_meter.c @@ -17,6 +17,9 @@ softnic_mtr_init(struct pmd_internals *p) /* Initialize meter profiles list */ TAILQ_INIT(&p->mtr.meter_profiles); + /* Initialize meter policies list */ + TAILQ_INIT(&p->mtr.meter_policies); + /* Initialize MTR objects list */ TAILQ_INIT(&p->mtr.mtrs); -- 2.31.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-17 17:40:36.356924437 +0200 +++ 0178-net-softnic-fix-meter-policies-initialization.patch 2021-05-17 17:40:29.511812154 +0200 @@ -1 +1 @@ -From 9421152d7dcf951aae30c1b22c0c9c63875ff90a Mon Sep 17 00:00:00 2001 +From d0f7ec0ea253ab908b67c33bf6269a56392211df Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 9421152d7dcf951aae30c1b22c0c9c63875ff90a ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index acb8b87fd1..5831892a39 100644 +index 31a2a0e6d9..4b152abb7a 100644