[dpdk-stable] patch 'service: fix C++ linkage' has been queued to stable release 19.11.4

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Jul 24 13:59:22 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/26/20. 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.

Thanks.

Luca Boccassi

---
>From 5a55e4f4297afdd781b129c6d90a34d0fc6a4c17 Mon Sep 17 00:00:00 2001
From: Levend Sayar <levendsayar at gmail.com>
Date: Thu, 9 Jul 2020 15:32:16 +0300
Subject: [PATCH] service: fix C++ linkage

[ upstream commit 604d426de35b445476fa1b9aeae4933ae647be3f ]

"extern C" define is added to rte_service_component.h file
to be able to use in C++ context

Fixes: 21698354c832 ("service: introduce service cores concept")

Signed-off-by: Levend Sayar <levendsayar at gmail.com>
Acked-by: Harry van Haaren <harry.van.haaren at intel.com>
---
 lib/librte_eal/common/include/rte_service_component.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/librte_eal/common/include/rte_service_component.h b/lib/librte_eal/common/include/rte_service_component.h
index b75aba11b..9e66ee7e2 100644
--- a/lib/librte_eal/common/include/rte_service_component.h
+++ b/lib/librte_eal/common/include/rte_service_component.h
@@ -9,6 +9,11 @@
  * Include this file if you are writing a component that requires CPU cycles to
  * operate, and you wish to run the component using service cores
  */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <rte_compat.h>
 #include <rte_service.h>
 
@@ -130,4 +135,8 @@ int32_t rte_service_init(void);
  */
 void rte_service_finalize(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _SERVICE_PRIVATE_H_ */
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-07-24 12:53:53.324368428 +0100
+++ 0124-service-fix-C-linkage.patch	2020-07-24 12:53:48.419008919 +0100
@@ -1,24 +1,25 @@
-From 604d426de35b445476fa1b9aeae4933ae647be3f Mon Sep 17 00:00:00 2001
+From 5a55e4f4297afdd781b129c6d90a34d0fc6a4c17 Mon Sep 17 00:00:00 2001
 From: Levend Sayar <levendsayar at gmail.com>
 Date: Thu, 9 Jul 2020 15:32:16 +0300
 Subject: [PATCH] service: fix C++ linkage
 
+[ upstream commit 604d426de35b445476fa1b9aeae4933ae647be3f ]
+
 "extern C" define is added to rte_service_component.h file
 to be able to use in C++ context
 
 Fixes: 21698354c832 ("service: introduce service cores concept")
-Cc: stable at dpdk.org
 
 Signed-off-by: Levend Sayar <levendsayar at gmail.com>
 Acked-by: Harry van Haaren <harry.van.haaren at intel.com>
 ---
- lib/librte_eal/include/rte_service_component.h | 9 +++++++++
+ lib/librte_eal/common/include/rte_service_component.h | 9 +++++++++
  1 file changed, 9 insertions(+)
 
-diff --git a/lib/librte_eal/include/rte_service_component.h b/lib/librte_eal/include/rte_service_component.h
+diff --git a/lib/librte_eal/common/include/rte_service_component.h b/lib/librte_eal/common/include/rte_service_component.h
 index b75aba11b..9e66ee7e2 100644
---- a/lib/librte_eal/include/rte_service_component.h
-+++ b/lib/librte_eal/include/rte_service_component.h
+--- a/lib/librte_eal/common/include/rte_service_component.h
++++ b/lib/librte_eal/common/include/rte_service_component.h
 @@ -9,6 +9,11 @@
   * Include this file if you are writing a component that requires CPU cycles to
   * operate, and you wish to run the component using service cores


More information about the stable mailing list