[dpdk-stable] patch 'net/softnic: fix meter policies initialization' has been queued to stable release 19.11.9

Christian Ehrhardt christian.ehrhardt at canonical.com
Mon May 17 18:10:07 CEST 2021


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 <christian.ehrhardt at canonical.com>

---
>From d0f7ec0ea253ab908b67c33bf6269a56392211df Mon Sep 17 00:00:00 2001
From: Dapeng Yu <dapengx.yu at intel.com>
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 <dapengx.yu at intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
---
 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 at dpdk.org
@@ -18 +19 @@
-index acb8b87fd1..5831892a39 100644
+index 31a2a0e6d9..4b152abb7a 100644


More information about the stable mailing list