patch 'app/procinfo: fix leak on exit' has been queued to stable release 21.11.9
Kevin Traynor
ktraynor at redhat.com
Wed Nov 27 18:19:00 CET 2024
Hi,
FYI, your patch has been queued to stable release 21.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 12/02/24. 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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/36f4854030e5c702a76f2169b9a502b9bb87b199
Thanks.
Kevin
---
>From 36f4854030e5c702a76f2169b9a502b9bb87b199 Mon Sep 17 00:00:00 2001
From: Fidaullah Noonari <fidaullah.noonari at emumba.com>
Date: Thu, 3 Oct 2024 19:48:29 -0700
Subject: [PATCH] app/procinfo: fix leak on exit
[ upstream commit 8a171e52ed8b26f768ced79a22286914ebd30180 ]
When app is launched with -m proc-info exit without
rte_eal_cleanup() causing memory leakage. This commit resolves the
memory leakage issue and closes app properly.
Bugzilla ID: 898
Fixes: 67684d1e87b6 ("app/procinfo: call EAL cleanup before exit")
Fixes: 674bb3906931 ("app/procinfo: display eventdev xstats")
Signed-off-by: Fidaullah Noonari <fidaullah.noonari at emumba.com>
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
---
app/proc-info/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index b52c3ffbc5..8030c10c25 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1500,5 +1500,5 @@ main(int argc, char **argv)
if (mem_info) {
meminfo_display();
- return 0;
+ goto cleanup;
}
@@ -1568,4 +1568,5 @@ main(int argc, char **argv)
rte_eth_dev_close(i);
+cleanup:
ret = rte_eal_cleanup();
if (ret)
--
2.47.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2024-11-27 17:17:41.815780350 +0000
+++ 0113-app-procinfo-fix-leak-on-exit.patch 2024-11-27 17:17:38.345269995 +0000
@@ -1 +1 @@
-From 8a171e52ed8b26f768ced79a22286914ebd30180 Mon Sep 17 00:00:00 2001
+From 36f4854030e5c702a76f2169b9a502b9bb87b199 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8a171e52ed8b26f768ced79a22286914ebd30180 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -19,2 +20,2 @@
- app/proc-info/main.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
+ app/proc-info/main.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
@@ -23 +24 @@
-index 6886eb373a..e1272164b1 100644
+index b52c3ffbc5..8030c10c25 100644
@@ -26 +27 @@
-@@ -2172,9 +2172,9 @@ main(int argc, char **argv)
+@@ -1500,5 +1500,5 @@ main(int argc, char **argv)
@@ -33,6 +34 @@
- if (eventdev_xstats() > 0)
-- return 0;
-+ goto cleanup;
-
- nb_ports = rte_eth_dev_count_avail();
-@@ -2257,4 +2257,5 @@ main(int argc, char **argv)
+@@ -1568,4 +1568,5 @@ main(int argc, char **argv)
More information about the stable
mailing list