From 604d426de35b445476fa1b9aeae4933ae647be3f Mon Sep 17 00:00:00 2001 From: Levend Sayar Date: Thu, 9 Jul 2020 15:32:16 +0300 Subject: [PATCH] service: fix C++ linkage "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@dpdk.org Signed-off-by: Levend Sayar Acked-by: Harry van Haaren --- lib/librte_eal/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 index b75aba11b9..9e66ee7e29 100644 --- a/lib/librte_eal/include/rte_service_component.h +++ b/lib/librte_eal/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 #include @@ -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