[dpdk-stable] [PATCH 19.11] eal/windows: add cleanup function stub

Dmitry Kozlyuk dmitry.kozliuk at gmail.com
Sun Jun 13 23:36:02 CEST 2021


Upstream commit 10aa375704c1 ("examples: add eal cleanup to examples")
requires librte_eal to export rte_eal_clearnup(). On Windows, it was
exported by commit c91717eb75c8 ("eal/windows: support exit and panic"),
which is based on refactoring that is not backported.

Add a stub to fix the build.
In 19.11 LTS this function has nothing to clean up.

Bugzilla ID: 732

Reported-by: Yu Jiang <yux.jiang at intel.com>
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
---
 lib/librte_eal/rte_eal_exports.def | 1 +
 lib/librte_eal/windows/eal/eal.c   | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def
index c1bdee1c40..61b4082a54 100644
--- a/lib/librte_eal/rte_eal_exports.def
+++ b/lib/librte_eal/rte_eal_exports.def
@@ -1,5 +1,6 @@
 EXPORTS
 	__rte_panic
+	rte_eal_cleanup
 	rte_eal_init
 	rte_eal_mp_remote_launch
 	rte_eal_mp_wait_lcore
diff --git a/lib/librte_eal/windows/eal/eal.c b/lib/librte_eal/windows/eal/eal.c
index ce460481f8..7cfa8451a3 100644
--- a/lib/librte_eal/windows/eal/eal.c
+++ b/lib/librte_eal/windows/eal/eal.c
@@ -82,3 +82,9 @@ rte_eal_init(int argc __rte_unused, char **argv __rte_unused)
 	rte_eal_mp_wait_lcore();
 	return 0;
 }
+
+int
+rte_eal_cleanup(void)
+{
+	return 0;
+}
-- 
2.29.3



More information about the stable mailing list