From patchwork Tue Feb 15 17:08:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107647 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3BD8A00C5; Tue, 15 Feb 2022 18:13:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD71C41145; Tue, 15 Feb 2022 18:13:50 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 05B4C410F3; Tue, 15 Feb 2022 18:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945229; x=1676481229; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KytQUdf7thyjmD9/90qq8ceKWw6wOGwrTRX+gQS//2w=; b=NAFI6yZM/VoRWhf85K1rgIlwj54yCMxkQRbFRoKf/YAR1ugaR7jOj7bI G3+6t1MMxDvo8a5rqq9o2U8a5M9Nt8yw0t5gXd42PouBMnjtt75iWMOMc ZvhhCrZW95D1FahaIb8j3g9Xj8edLqIeJ0X9j8go2Eh0KKM4ZgX4fH/DV qGG6H5s4InUHWw3E6RGOcvr7JvfL2K0TZoWT+wTx0ut2u4K0P/N4VmOS+ K0si4SlpSUi6fvYteEPWtfFpQvddC25r2NA9HQ3f6BHtk7gXweSD/NvUm jmWO8luoCG91gArhKhFWKsD0X2Z1gC34QKqy3z5u05tCUAafWhSPDfRk3 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336830976" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336830976" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802200" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:22 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , joyce.kong@arm.com, nhorman@tuxdriver.com, thomas@monjalon.net, anatoly.burakov@intel.com, adrien.mazarguil@6wind.com, jerinj@marvell.com, anand.rawat@intel.com, stable@dpdk.org, Ray Kinsella , Sunil Kumar Kori , Gavin Hu , =?utf-8?q?Morten_Br=C3=B8rup?= , Phil Yang , Sergio Gonzalez Monroy , Remy Horton , David Marchand , Harini Ramakrishnan , Pallavi Kadam Subject: [PATCH 01/11] eal: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:07 +0000 Message-Id: <20220215170817.662136-2-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: af75078fece3 ("first public release") Fixes: 7f3aa0863903 ("eal: introduce bit operations API") Fixes: 166a743c53fa ("compat: add infrastructure to support symbol versioning") Fixes: 8f40ee0734c8 ("eal/x86: get hypervisor name") Fixes: 75583b0d1efd ("eal: add keep alive monitoring") Fixes: 88701645c98c ("eal: move interrupt type out of igb_uio") Fixes: f04519d8092e ("lib: add missing include dependencies") Fixes: f58880682c81 ("trace: implement register API") Fixes: 428eb983f5f7 ("eal: add OS specific header file") Cc: joyce.kong@arm.com Cc: nhorman@tuxdriver.com Cc: thomas@monjalon.net Cc: anatoly.burakov@intel.com Cc: adrien.mazarguil@6wind.com Cc: jerinj@marvell.com Cc: anand.rawat@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/eal/include/rte_bitops.h | 8 ++++++++ lib/eal/include/rte_branch_prediction.h | 8 ++++++++ lib/eal/include/rte_compat.h | 8 ++++++++ lib/eal/include/rte_hypervisor.h | 8 ++++++++ lib/eal/include/rte_keepalive.h | 8 ++++++++ lib/eal/include/rte_pci_dev_feature_defs.h | 8 ++++++++ lib/eal/include/rte_pci_dev_features.h | 8 ++++++++ lib/eal/include/rte_time.h | 8 ++++++++ lib/eal/include/rte_trace_point_register.h | 8 ++++++++ lib/eal/linux/include/rte_os.h | 8 ++++++++ 10 files changed, 80 insertions(+) diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h index 141e8ea730..f50dbe4388 100644 --- a/lib/eal/include/rte_bitops.h +++ b/lib/eal/include/rte_bitops.h @@ -17,6 +17,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** * Get the uint64_t value for a specified bit set. * @@ -271,4 +275,8 @@ rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr) return val & mask; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_BITOPS_H_ */ diff --git a/lib/eal/include/rte_branch_prediction.h b/lib/eal/include/rte_branch_prediction.h index 854ef9e5dd..0256a9de60 100644 --- a/lib/eal/include/rte_branch_prediction.h +++ b/lib/eal/include/rte_branch_prediction.h @@ -10,6 +10,10 @@ #ifndef _RTE_BRANCH_PREDICTION_H_ #define _RTE_BRANCH_PREDICTION_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * Check if a branch is likely to be taken. * @@ -38,4 +42,8 @@ #define unlikely(x) __builtin_expect(!!(x), 0) #endif /* unlikely */ +#ifdef __cplusplus +} +#endif + #endif /* _RTE_BRANCH_PREDICTION_H_ */ diff --git a/lib/eal/include/rte_compat.h b/lib/eal/include/rte_compat.h index 9556bbf4d0..fc9fbaaab2 100644 --- a/lib/eal/include/rte_compat.h +++ b/lib/eal/include/rte_compat.h @@ -6,6 +6,10 @@ #ifndef _RTE_COMPAT_H_ #define _RTE_COMPAT_H_ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef ALLOW_EXPERIMENTAL_API #define __rte_experimental \ @@ -46,4 +50,8 @@ __attribute__((section(".text.internal"))) #endif +#ifdef __cplusplus +} +#endif + #endif /* _RTE_COMPAT_H_ */ diff --git a/lib/eal/include/rte_hypervisor.h b/lib/eal/include/rte_hypervisor.h index 5fe719c1d4..1666431ce3 100644 --- a/lib/eal/include/rte_hypervisor.h +++ b/lib/eal/include/rte_hypervisor.h @@ -5,6 +5,10 @@ #ifndef RTE_HYPERVISOR_H #define RTE_HYPERVISOR_H +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * Hypervisor awareness. @@ -30,4 +34,8 @@ rte_hypervisor_get(void); const char * rte_hypervisor_get_name(enum rte_hypervisor id); +#ifdef __cplusplus +} +#endif + #endif /* RTE_HYPERVISOR_H */ diff --git a/lib/eal/include/rte_keepalive.h b/lib/eal/include/rte_keepalive.h index bd25508da8..538fb09095 100644 --- a/lib/eal/include/rte_keepalive.h +++ b/lib/eal/include/rte_keepalive.h @@ -11,6 +11,10 @@ #ifndef _KEEPALIVE_H_ #define _KEEPALIVE_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -139,4 +143,8 @@ rte_keepalive_register_relay_callback(struct rte_keepalive *keepcfg, rte_keepalive_relay_callback_t callback, void *data); +#ifdef __cplusplus +} +#endif + #endif /* _KEEPALIVE_H_ */ diff --git a/lib/eal/include/rte_pci_dev_feature_defs.h b/lib/eal/include/rte_pci_dev_feature_defs.h index e12c22081f..c5bb631286 100644 --- a/lib/eal/include/rte_pci_dev_feature_defs.h +++ b/lib/eal/include/rte_pci_dev_feature_defs.h @@ -5,6 +5,10 @@ #ifndef _RTE_PCI_DEV_DEFS_H_ #define _RTE_PCI_DEV_DEFS_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* interrupt mode */ enum rte_intr_mode { RTE_INTR_MODE_NONE = 0, @@ -13,4 +17,8 @@ enum rte_intr_mode { RTE_INTR_MODE_MSIX }; +#ifdef __cplusplus +} +#endif + #endif /* _RTE_PCI_DEV_DEFS_H_ */ diff --git a/lib/eal/include/rte_pci_dev_features.h b/lib/eal/include/rte_pci_dev_features.h index 6104123d27..ee6e10590c 100644 --- a/lib/eal/include/rte_pci_dev_features.h +++ b/lib/eal/include/rte_pci_dev_features.h @@ -5,6 +5,10 @@ #ifndef _RTE_PCI_DEV_FEATURES_H #define _RTE_PCI_DEV_FEATURES_H +#ifdef __cplusplus +extern "C" { +#endif + #include #define RTE_INTR_MODE_NONE_NAME "none" @@ -12,4 +16,8 @@ #define RTE_INTR_MODE_MSI_NAME "msi" #define RTE_INTR_MODE_MSIX_NAME "msix" +#ifdef __cplusplus +} +#endif + #endif diff --git a/lib/eal/include/rte_time.h b/lib/eal/include/rte_time.h index 5ad7c8841a..ec25f7b93d 100644 --- a/lib/eal/include/rte_time.h +++ b/lib/eal/include/rte_time.h @@ -5,6 +5,10 @@ #ifndef _RTE_TIME_H_ #define _RTE_TIME_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -98,4 +102,8 @@ rte_ns_to_timespec(uint64_t nsec) return ts; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_TIME_H_ */ diff --git a/lib/eal/include/rte_trace_point_register.h b/lib/eal/include/rte_trace_point_register.h index 4f5c86552d..2e61439940 100644 --- a/lib/eal/include/rte_trace_point_register.h +++ b/lib/eal/include/rte_trace_point_register.h @@ -5,6 +5,10 @@ #ifndef _RTE_TRACE_POINT_REGISTER_H_ #define _RTE_TRACE_POINT_REGISTER_H_ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef _RTE_TRACE_POINT_H_ #error for registration, include this file first before #endif @@ -42,4 +46,8 @@ do { \ RTE_STR(in)"[32]", "string_bounded_t"); \ } while (0) +#ifdef __cplusplus +} +#endif + #endif /* _RTE_TRACE_POINT_REGISTER_H_ */ diff --git a/lib/eal/linux/include/rte_os.h b/lib/eal/linux/include/rte_os.h index 35c07c70cb..c72bf5b7e6 100644 --- a/lib/eal/linux/include/rte_os.h +++ b/lib/eal/linux/include/rte_os.h @@ -5,6 +5,10 @@ #ifndef _RTE_OS_H_ #define _RTE_OS_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * This header should contain any definition * which is not supported natively or named differently in Linux. @@ -42,4 +46,8 @@ typedef cpu_set_t rte_cpuset_t; } while (0) #endif +#ifdef __cplusplus +} +#endif + #endif /* _RTE_OS_H_ */ From patchwork Tue Feb 15 17:08:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107648 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A0DC7A00C5; Tue, 15 Feb 2022 18:13:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D29E941153; Tue, 15 Feb 2022 18:13:52 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B84EF410F3; Tue, 15 Feb 2022 18:13:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945231; x=1676481231; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jZXP+CvSrDHPnEhSPzJlzyTSQSSvSHh7KOyVffe2Zok=; b=X/WOykub6qSoST1VUFk5+CnR/jK1R0db2rBniTBMiClJZH/D4ge6oMGq yP0q8f1R3v4B8hyVZyQZFrUfzepA2FU2OrpKbBjQNFe7QYSwDQPRD6npJ /c0LVs5WnQP1Kf8Az7oHnSB+2Nz6h40ehY1smNgXQr5vH9rngislZEOBu 4+xPMHz1ynTaF6G/ClucZXYvCJGBqMSmdPzRE3P2GLCCMXgLhWS6SzYzE uTi5fLGRP9Mdviu8BaMJNKVHAJvSj247N1y9By5vBbilo8sh1fulGoBha Kx0ONAQN5UWTWBw7A0cMVhkjIJPTdj4fYZ7vGPVaFYW/h85x2sD5eIzHR g==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336830999" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336830999" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802216" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:27 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , ciara.power@intel.com, stable@dpdk.org, Harry van Haaren , Radu Nicolau , Kevin Laatz , Brian Archbold Subject: [PATCH 02/11] telemetry: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:08 +0000 Message-Id: <20220215170817.662136-3-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: 8877ac688b52 ("telemetry: introduce infrastructure") Cc: ciara.power@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/telemetry/rte_telemetry.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/telemetry/rte_telemetry.h b/lib/telemetry/rte_telemetry.h index 7bca8a9a49..3372b32f38 100644 --- a/lib/telemetry/rte_telemetry.h +++ b/lib/telemetry/rte_telemetry.h @@ -9,6 +9,10 @@ #ifndef _RTE_TELEMETRY_H_ #define _RTE_TELEMETRY_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** Maximum length for string used in object. */ #define RTE_TEL_MAX_STRING_LEN 128 /** Maximum length of string. */ @@ -294,4 +298,8 @@ rte_tel_data_alloc(void); void rte_tel_data_free(struct rte_tel_data *data); +#ifdef __cplusplus +} +#endif + #endif From patchwork Tue Feb 15 17:08:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107649 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E5151A034C; Tue, 15 Feb 2022 18:14:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3B1E41158; Tue, 15 Feb 2022 18:13:55 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id C62AD4115D; Tue, 15 Feb 2022 18:13:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945234; x=1676481234; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4lVEwY1H5zr/d4LHXZakx6JD0MgR0G+WMq2J7uhG5tE=; b=R0l2FxQTz+y7TV4dMi69D6J/gk5tLa0xOzCNioqrsTY6Fa/cd/kyYSyJ XhsL07nBz3kPqLNRYFi8hQ1hpAFrRTkILPyyJv+fIe83tnzurMMkWS20m BSh3OEJ3oxscXu+9Lc5472A1zioZVPbTNh/lilvUdDpAOAJlQY6VzrsTV fHJiZPjtDVwmk+d4l973lEnKn+Vp44rQkr67ZKCPLpJy/jvSEay4d92wl p99SgLLJkSyKgZ2gKibJQfcGkoTtzu45mbbrP3NUo+h3KDawnv408x3F+ ACo3Odr+Zgjan1MHCU4Maj3wBMDuJQVxjl+y9OJAWPYm713TmaFXJq1bq g==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831029" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831029" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802231" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:29 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , liang-min.wang@intel.com, jblunck@infradead.org, ferruh.yigit@intel.com, thomas@monjalon.net, stable@dpdk.org, Andrew Rybchenko , Andrew Harvey , David Harton , Konstantin Ananyev , Stephen Hemminger Subject: [PATCH 03/11] ethdev: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:09 +0000 Message-Id: <20220215170817.662136-4-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: 7a3f27cbf59b ("ethdev: add access to specific device info") Fixes: dcd5c8112bc3 ("ethdev: add PCI driver helpers") Fixes: 7f0a669e7b04 ("ethdev: add allocation helper for virtual drivers") Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: liang-min.wang@intel.com Cc: jblunck@infradead.org Cc: ferruh.yigit@intel.com Cc: thomas@monjalon.net Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/ethdev/ethdev_driver.h | 8 ++++++++ lib/ethdev/ethdev_pci.h | 8 ++++++++ lib/ethdev/ethdev_vdev.h | 8 ++++++++ lib/ethdev/rte_dev_info.h | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h index 6d697a879a..5ec00e533e 100644 --- a/lib/ethdev/ethdev_driver.h +++ b/lib/ethdev/ethdev_driver.h @@ -5,6 +5,10 @@ #ifndef _RTE_ETHDEV_DRIVER_H_ #define _RTE_ETHDEV_DRIVER_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -1881,4 +1885,8 @@ struct rte_eth_tunnel_filter_conf { uint16_t queue_id; /**< Queue assigned to if match */ }; +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ETHDEV_DRIVER_H_ */ diff --git a/lib/ethdev/ethdev_pci.h b/lib/ethdev/ethdev_pci.h index 71aa4b2e98..6130bcbd1f 100644 --- a/lib/ethdev/ethdev_pci.h +++ b/lib/ethdev/ethdev_pci.h @@ -6,6 +6,10 @@ #ifndef _RTE_ETHDEV_PCI_H_ #define _RTE_ETHDEV_PCI_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -171,4 +175,8 @@ rte_eth_dev_pci_generic_remove(struct rte_pci_device *pci_dev, return 0; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ETHDEV_PCI_H_ */ diff --git a/lib/ethdev/ethdev_vdev.h b/lib/ethdev/ethdev_vdev.h index 2b49e9665b..f5f536ce64 100644 --- a/lib/ethdev/ethdev_vdev.h +++ b/lib/ethdev/ethdev_vdev.h @@ -6,6 +6,10 @@ #ifndef _RTE_ETHDEV_VDEV_H_ #define _RTE_ETHDEV_VDEV_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -52,4 +56,8 @@ rte_eth_vdev_allocate(struct rte_vdev_device *dev, size_t private_data_size) return eth_dev; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ETHDEV_VDEV_H_ */ diff --git a/lib/ethdev/rte_dev_info.h b/lib/ethdev/rte_dev_info.h index cb2fe0ae97..67cf0ae526 100644 --- a/lib/ethdev/rte_dev_info.h +++ b/lib/ethdev/rte_dev_info.h @@ -5,6 +5,10 @@ #ifndef _RTE_DEV_INFO_H_ #define _RTE_DEV_INFO_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include /* @@ -48,4 +52,8 @@ struct rte_eth_dev_module_info { #define RTE_ETH_MODULE_SFF_8436_LEN 256 #define RTE_ETH_MODULE_SFF_8436_MAX_LEN 640 +#ifdef __cplusplus +} +#endif + #endif /* _RTE_DEV_INFO_H_ */ From patchwork Tue Feb 15 17:08:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107650 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1E506A00C5; Tue, 15 Feb 2022 18:14:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7B7641163; Tue, 15 Feb 2022 18:13:56 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id D536E41151; Tue, 15 Feb 2022 18:13:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945235; x=1676481235; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=W8NVTMhHyqqquFU5AfjX8mGHwSG3Tx/9h3nmNut25rM=; b=OVcDbfOyfzlQIkLE4M3eWEUKj2AjAJZd1thm9mbxTTGQsmSfBpzgcCT2 XU40Vl203JjHVBokS9YLhL6Gu9Dp2C5nPeGR4NXbjCwUY70TSlle5Koe1 dhIzJN4y8CgxPSdQIWMqDt1z1XkwAoRWf2jIdphYzxpHzUPkEmOir+f8T ENbDExnCT0edfg4HJq3FJKuobDmSPvKBi53HkT1R1Lr7zCkqiaKqyUmnL MC/Bmp8gtCscyPJP1yAH2xb2/VzpLTXCGXpS9lE2uFCYgdh0aWEHvBXqe IZFRp8SH4EmZTIrthU4+QXGbCe00Zn+/N/OmF8n7qpKFbJp5vq/7b0XoF A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831039" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831039" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802239" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:33 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , ciara.power@intel.com, stable@dpdk.org, Keith Wiles Subject: [PATCH 04/11] metrics: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:10 +0000 Message-Id: <20220215170817.662136-5-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: c5b7197f662e ("telemetry: move some functions to metrics library") Cc: ciara.power@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/metrics/rte_metrics_telemetry.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/metrics/rte_metrics_telemetry.h b/lib/metrics/rte_metrics_telemetry.h index 2b6eb1ccc8..09b14d9336 100644 --- a/lib/metrics/rte_metrics_telemetry.h +++ b/lib/metrics/rte_metrics_telemetry.h @@ -13,6 +13,9 @@ #ifndef _RTE_METRICS_TELEMETRY_H_ #define _RTE_METRICS_TELEMETRY_H_ +#ifdef __cplusplus +extern "C" { +#endif enum rte_telemetry_stats_type { PORT_STATS = 0, @@ -60,4 +63,8 @@ __rte_experimental int32_t rte_metrics_tel_extract_data(struct telemetry_encode_param *ep, json_t *data); +#ifdef __cplusplus +} +#endif + #endif From patchwork Tue Feb 15 17:08:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107651 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 68F9FA00C5; Tue, 15 Feb 2022 18:14:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0EDA4115F; Tue, 15 Feb 2022 18:14:00 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4A99541152; Tue, 15 Feb 2022 18:13:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945239; x=1676481239; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=//ZUgLfMrqjrvCJ94BdsopA5o8W2erGV+N6vstEDqJ4=; b=BzU1S1sSJL9V3TFWLU0aj0YvYqpmJ4Kg2PTjBOOz8y8N8q5NH6hCmZC1 vghwXVFhQ0nnSQE0COJ5/HyFSeikjsWAYzSclECf9j21QEH1oe3GcKBzB o80zTRlfYVaa+upr8mSfT7MBNkyyhSnNGZVLyktbaj7JnsIJ1Fbd+eSLQ QgPyIBekgipHqCegNIn15yOY9vCZ8VAfY+yyA0LLO+Fztn67sNFlYGKF8 4eZ4o8EfBCo+gC4YsDGUojDbd2IAxYju51QEneG1oi0VvfFxSlqBtqpWb GuxZkYmmGmSRGjlgnMXrB6zMGtNxLaD+4vyVep7/Hq8gbFB+H6ESdah24 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831066" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831066" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802251" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:34 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , konstantin.ananyev@intel.com, stable@dpdk.org, Pablo de Lara Guarch Subject: [PATCH 05/11] acl: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:11 +0000 Message-Id: <20220215170817.662136-6-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: dc276b5780c2 ("acl: new library") Cc: konstantin.ananyev@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/acl/rte_acl_osdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/acl/rte_acl_osdep.h b/lib/acl/rte_acl_osdep.h index b2c262dee7..3c1dc402ca 100644 --- a/lib/acl/rte_acl_osdep.h +++ b/lib/acl/rte_acl_osdep.h @@ -5,6 +5,10 @@ #ifndef _RTE_ACL_OSDEP_H_ #define _RTE_ACL_OSDEP_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -45,4 +49,8 @@ #include #include +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ACL_OSDEP_H_ */ From patchwork Tue Feb 15 17:08:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107652 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C2AAA00C5; Tue, 15 Feb 2022 18:14:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A961841165; Tue, 15 Feb 2022 18:14:02 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 81CA541152; Tue, 15 Feb 2022 18:14:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945240; x=1676481240; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FovI7VeTpOha6UEp/C71td3CTwTG5/vAz0HI4bLL128=; b=dLepkcZz/jMaTY7bj5FDkg/3Ihe6x48V0TTY9EQQQR7gjsDIwEscIYMc x7FyVY6lUlMEUSPjvs8fGq3fyqhHY3WiSHj/Mh6VsDhraHH9eF1EKrptM ozccqyvPZLItIk+jK8938Y2df++gu5Z5ARmPttuV4Bkv0qItmWb0vTWZT ZzZU806Ezna1BGkJtHrPegnaee+anBhTjaHk7lOfybXyT+nbJ0grqaMTu v3hsY0mn757mVd7R0OME6ETo1OUI/4V3ngB3wVQ1TX7AUsKlvSlj/5IYj SVvsl2PLF4ouSlBWGHdMElt/5FBkM5nV6L2EjCWnn4EEgCrujMcvqPZBa w==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831077" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831077" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802266" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:36 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , fiona.trahe@intel.com, stable@dpdk.org, Fan Zhang , Ashish Gupta , Pablo de Lara , Shally Verma Subject: [PATCH 06/11] compressdev: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:12 +0000 Message-Id: <20220215170817.662136-7-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: ed7dd94f7f66 ("compressdev: add basic device management") Cc: fiona.trahe@intel.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/compressdev/rte_compressdev_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/compressdev/rte_compressdev_internal.h b/lib/compressdev/rte_compressdev_internal.h index 22ceac66e2..888c8f5c5c 100644 --- a/lib/compressdev/rte_compressdev_internal.h +++ b/lib/compressdev/rte_compressdev_internal.h @@ -5,6 +5,10 @@ #ifndef _RTE_COMPRESSDEV_INTERNAL_H_ #define _RTE_COMPRESSDEV_INTERNAL_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* rte_compressdev_internal.h * This file holds Compressdev private data structures. */ @@ -111,4 +115,9 @@ struct rte_compressdev_data { void *dev_private; /**< PMD-specific private data */ } __rte_cache_aligned; + +#ifdef __cplusplus +} +#endif + #endif From patchwork Tue Feb 15 17:08:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107653 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3FFC9A00C5; Tue, 15 Feb 2022 18:14:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F299541180; Tue, 15 Feb 2022 18:14:06 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 230AC41177; Tue, 15 Feb 2022 18:14:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945245; x=1676481245; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vLjQ3cGuvlbq93W5u2qjSwFrWpdYD6jgKMTK1v/tZgU=; b=h0zpLZ7SK5SjpAqUl3zvM5zE4YaiDIaAB4vpUZeBnJ62P25r/zCxvblp 9OHbkQi2l55eD1MdD0a+TdDfNDPi0AJNhYEadaRm8gIM9rinlVV8VLoVq 5rMV8uzDDm9T9Dy7aALF2ABZ1IlubvtNhRKK+TmnR1BKlaO+/Bz20kfiq 7AanEjEzD3sktN/vM1FLtPkTBiIRxYtle/NbF+owYzrfAhrPG4NXpbZs7 LgYZbAHJtDjvSecvu9mBumgV2TtYb1YafCLq8x+uJENLMvfgjLC3Nb8pT y7bi849hlPSVXTfbOcnQJ1w0n36l4J74lAOu+9M809/iwvjsstmr5ZcGG A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831107" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831107" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802282" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:38 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , bruce.richardson@intel.com, thomas@monjalon.net, stable@dpdk.org, Jerin Jacob , Harry van Haaren Subject: [PATCH 07/11] eventdev: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:13 +0000 Message-Id: <20220215170817.662136-8-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: dc39e2f359b5 ("eventdev: add ring structure for events") Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: bruce.richardson@intel.com Cc: thomas@monjalon.net Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/eventdev/eventdev_pmd.h | 8 ++++++++ lib/eventdev/eventdev_pmd_pci.h | 8 ++++++++ lib/eventdev/eventdev_pmd_vdev.h | 8 ++++++++ lib/eventdev/rte_event_ring.h | 9 +++++++++ 4 files changed, 33 insertions(+) diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h index b05ffce549..ce469d47a6 100644 --- a/lib/eventdev/eventdev_pmd.h +++ b/lib/eventdev/eventdev_pmd.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_H_ #define _RTE_EVENTDEV_PMD_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Event PMD APIs * @@ -1366,4 +1370,8 @@ void event_dev_fp_ops_set(struct rte_event_fp_ops *fp_ops, const struct rte_eventdev *dev); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_H_ */ diff --git a/lib/eventdev/eventdev_pmd_pci.h b/lib/eventdev/eventdev_pmd_pci.h index 499852db16..24b56faaa9 100644 --- a/lib/eventdev/eventdev_pmd_pci.h +++ b/lib/eventdev/eventdev_pmd_pci.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_PCI_H_ #define _RTE_EVENTDEV_PMD_PCI_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Eventdev PCI PMD APIs * @@ -150,4 +154,8 @@ rte_event_pmd_pci_remove(struct rte_pci_device *pci_dev, return 0; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_PCI_H_ */ diff --git a/lib/eventdev/eventdev_pmd_vdev.h b/lib/eventdev/eventdev_pmd_vdev.h index d9ee7277dd..77904910a2 100644 --- a/lib/eventdev/eventdev_pmd_vdev.h +++ b/lib/eventdev/eventdev_pmd_vdev.h @@ -5,6 +5,10 @@ #ifndef _RTE_EVENTDEV_PMD_VDEV_H_ #define _RTE_EVENTDEV_PMD_VDEV_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Eventdev VDEV PMD APIs * @@ -99,4 +103,8 @@ rte_event_pmd_vdev_uninit(const char *name) return 0; } +#ifdef __cplusplus +} +#endif + #endif /* _RTE_EVENTDEV_PMD_VDEV_H_ */ diff --git a/lib/eventdev/rte_event_ring.h b/lib/eventdev/rte_event_ring.h index c0861b0ec2..0b9aefb000 100644 --- a/lib/eventdev/rte_event_ring.h +++ b/lib/eventdev/rte_event_ring.h @@ -14,6 +14,10 @@ #ifndef _RTE_EVENT_RING_ #define _RTE_EVENT_RING_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -266,4 +270,9 @@ rte_event_ring_get_capacity(const struct rte_event_ring *r) { return rte_ring_get_capacity(&r->r); } + +#ifdef __cplusplus +} +#endif + #endif From patchwork Tue Feb 15 17:08:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107654 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DEC47A00C5; Tue, 15 Feb 2022 18:14:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7E1B41155; Tue, 15 Feb 2022 18:14:12 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 05FFC4114E; Tue, 15 Feb 2022 18:14:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945251; x=1676481251; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nPLOFjFZPtX+g0dZZs/OODMpq5xtzEFC5vLeagW4wJw=; b=kPTjJPl67xjc2cGVD2Nn+bfY/TTkRrUKNutn6ITL4Cbpr/1bNnice8rV tnlGrs74C1bqPOAytMYPpCUd5S0/ZiHmcJ64VToGPBlgHwe9j97OSoA1A w9iJ+Nrr9oSsrvhBUUEirnOBK0aGM5h3F+/ANfqBXoOpLBOmSJwGc5gvQ SF/WCZeDTpvTOkU4Qhj79Xm0n0GwmsyXQWlk0MORT9tr2/h5jZYx4MHvV f5Qr6myF0kAwZIu2f38pkoc7/lL+JCaC5JCwzX8dABHgiU0LrAt1wTO0v hlUIis9xAsdQizzPPRFEMf+i0l/qZqSOuFp2VdRKJk+e233loGffS36Od w==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831130" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831130" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802293" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:41 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , stable@dpdk.org, Ferruh Yigit Subject: [PATCH 08/11] kni: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:14 +0000 Message-Id: <20220215170817.662136-9-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: 3fc5ca2f6352 ("kni: initial import") Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/kni/rte_kni_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/kni/rte_kni_common.h b/lib/kni/rte_kni_common.h index b547ea5501..8d3ee0fa4f 100644 --- a/lib/kni/rte_kni_common.h +++ b/lib/kni/rte_kni_common.h @@ -6,6 +6,10 @@ #ifndef _RTE_KNI_COMMON_H_ #define _RTE_KNI_COMMON_H_ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef __KERNEL__ #include #include @@ -136,4 +140,8 @@ struct rte_kni_device_info { #define RTE_KNI_IOCTL_CREATE _IOWR(0, 2, struct rte_kni_device_info) #define RTE_KNI_IOCTL_RELEASE _IOWR(0, 3, struct rte_kni_device_info) +#ifdef __cplusplus +} +#endif + #endif /* _RTE_KNI_COMMON_H_ */ From patchwork Tue Feb 15 17:08:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107655 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C2FBA00C5; Tue, 15 Feb 2022 18:14:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0EA6F41199; Tue, 15 Feb 2022 18:14:17 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 91CDB4117D; Tue, 15 Feb 2022 18:14:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945256; x=1676481256; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0gchZ1/PMAT4YNUqjO31OQ1pmts/Y0o/BCeHFR+fShI=; b=H/3dkgm/52zzBrwvqCKCrsUfYR4Jxi/TEsFEa/hvxMj+/8fMT20FFa+8 9k5W8koYylhH0IQLJiAzOv/RMzWBUt8d99B7JcwCF+rqRjQ46sB8IMujZ ToMc8nC5Q54k0ZM8yp2cyp2U5jvG98L5NBXifc0lgAcsrlfKI+hhilo3N m4jpDHF7fJmEJcXbE8yuS01fAgeiAK0uKP59SkLPCE/eH+AtcUTsKiYzI tSDLywzU9rnjaCpkOI25YIEuxhFFsysWz4P4hfpiwubmYWkhdz/uzEUtB L8a85F2/K13gPpZ/h4RPdEBKUQ3bt7YdWf1kpyV2Aj6jE9qgaRp8sduaR A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831155" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831155" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802312" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:42 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , zhihong.wang@intel.com, patrick.fu@intel.com, roy.fan.zhang@intel.com, maxime.coquelin@redhat.com, stable@dpdk.org, Chenbo Xia , Jay Zhou , Thomas Monjalon Subject: [PATCH 09/11] vhost: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:15 +0000 Message-Id: <20220215170817.662136-10-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: d7280c9fffcb ("vhost: support selective datapath") Fixes: 78639d54563a ("vhost: introduce async enqueue registration API") Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Fixes: 94c16e89d779 ("vhost: mark vDPA driver API as internal") Cc: zhihong.wang@intel.com Cc: patrick.fu@intel.com Cc: roy.fan.zhang@intel.com Cc: maxime.coquelin@redhat.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/vhost/rte_vdpa.h | 9 +++++++++ lib/vhost/rte_vhost_async.h | 8 ++++++++ lib/vhost/rte_vhost_crypto.h | 8 ++++++++ lib/vhost/vdpa_driver.h | 8 ++++++++ 4 files changed, 33 insertions(+) diff --git a/lib/vhost/rte_vdpa.h b/lib/vhost/rte_vdpa.h index 1437f400bf..6ac85d1bbf 100644 --- a/lib/vhost/rte_vdpa.h +++ b/lib/vhost/rte_vdpa.h @@ -5,6 +5,10 @@ #ifndef _RTE_VDPA_H_ #define _RTE_VDPA_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -183,4 +187,9 @@ rte_vdpa_get_stats(struct rte_vdpa_device *dev, uint16_t qid, */ int rte_vdpa_reset_stats(struct rte_vdpa_device *dev, uint16_t qid); + +#ifdef __cplusplus +} +#endif + #endif /* _RTE_VDPA_H_ */ diff --git a/lib/vhost/rte_vhost_async.h b/lib/vhost/rte_vhost_async.h index 838c4778cc..f1293c6a9d 100644 --- a/lib/vhost/rte_vhost_async.h +++ b/lib/vhost/rte_vhost_async.h @@ -5,6 +5,10 @@ #ifndef _RTE_VHOST_ASYNC_H_ #define _RTE_VHOST_ASYNC_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -183,4 +187,8 @@ uint16_t rte_vhost_clear_queue_thread_unsafe(int vid, uint16_t queue_id, __rte_experimental int rte_vhost_async_dma_configure(int16_t dma_id, uint16_t vchan_id); +#ifdef __cplusplus +} +#endif + #endif /* _RTE_VHOST_ASYNC_H_ */ diff --git a/lib/vhost/rte_vhost_crypto.h b/lib/vhost/rte_vhost_crypto.h index f54d731139..b49e389579 100644 --- a/lib/vhost/rte_vhost_crypto.h +++ b/lib/vhost/rte_vhost_crypto.h @@ -5,6 +5,10 @@ #ifndef _VHOST_CRYPTO_H_ #define _VHOST_CRYPTO_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -132,4 +136,8 @@ uint16_t rte_vhost_crypto_finalize_requests(struct rte_crypto_op **ops, uint16_t nb_ops, int *callfds, uint16_t *nb_callfds); +#ifdef __cplusplus +} +#endif + #endif /**< _VHOST_CRYPTO_H_ */ diff --git a/lib/vhost/vdpa_driver.h b/lib/vhost/vdpa_driver.h index fddbd50652..88138be34a 100644 --- a/lib/vhost/vdpa_driver.h +++ b/lib/vhost/vdpa_driver.h @@ -5,6 +5,10 @@ #ifndef _VDPA_DRIVER_H_ #define _VDPA_DRIVER_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -144,4 +148,8 @@ __rte_internal int rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m); +#ifdef __cplusplus +} +#endif + #endif /* _VDPA_DRIVER_H_ */ From patchwork Tue Feb 15 17:08:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107656 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 57F26A00C5; Tue, 15 Feb 2022 18:14:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EADA2411AB; Tue, 15 Feb 2022 18:14:17 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id C003A4117D; Tue, 15 Feb 2022 18:14:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945257; x=1676481257; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FStblPFKfo/JDMHUuyIgh1QSwhkK9uzffKisV+o4IXQ=; b=lcQwGU6sUzvdLaME5Fe75e2HisiK/cbXIH3NPuxgLRGNjrk3NYb9apw4 2V2jSjkDX7CLRv23lYz+3DS4wiGqwEXNOiZg03I/7TtcgAHoEXNokY5Lm GpYeIbhM1u4uc1JYIj8rgQNq5AiFBiokGDWeTJsPN1TO69cgYavCuPZfh cya/t+kLNZr04lsvpN2hVMvuWyu/MK1dfkNAumFBkDCaMIiZ0jFGh07aC QxAr+rbGHZLtyCo129LgZVCMF9QpdSY8X3E+lFpTo+19oCSCY0hTpJ8C4 47HxxGLJXnUQghJ3wM4NGxxYQxukLp8fUuN/0NUWcMbiyDuz/diJCuyQ0 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831167" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831167" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802327" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:45 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , thomas@monjalon.net, stable@dpdk.org, Konstantin Ananyev Subject: [PATCH 10/11] bpf: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:16 +0000 Message-Id: <20220215170817.662136-11-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: thomas@monjalon.net Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/bpf/bpf_def.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/bpf/bpf_def.h b/lib/bpf/bpf_def.h index fa9125307e..f08cd9106b 100644 --- a/lib/bpf/bpf_def.h +++ b/lib/bpf/bpf_def.h @@ -7,6 +7,10 @@ #ifndef _RTE_BPF_DEF_H_ #define _RTE_BPF_DEF_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -140,4 +144,8 @@ struct ebpf_insn { */ #define EBPF_FUNC_MAX_ARGS (EBPF_REG_6 - EBPF_REG_1) +#ifdef __cplusplus +} +#endif + #endif /* RTE_BPF_DEF_H_ */ From patchwork Tue Feb 15 17:08:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Dooley X-Patchwork-Id: 107657 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 85CC5A00C5; Tue, 15 Feb 2022 18:14:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF42C4118F; Tue, 15 Feb 2022 18:14:19 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 44FF541159; Tue, 15 Feb 2022 18:14:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644945257; x=1676481257; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Bjh7R5goYZRVwBoMD18rqY6s5EDTsIZhPm1m9j4y+GE=; b=KAf7ex8jf4IRp9jcHjMkeDe7Wds/RxQvnePflpnQ3W53K1LqXdHA2Z+v jBk+pVuvTw8RR0hquLp12Py5s2P12FktM19sLnHUt6g7YfYv7wVcCzV6O 9TpQCmf2kYWaSIsDnpcznlSOU3+YTZ01O+Clnn5EokQ0dkfwkyWaWsQvM qrgT9R7tDWrzJ1bUj6nlSiQTwbE7QGynNzqjS24XWQNPaRidftXpSLEgb JZt/GEKDucI3hvU/NbzYoB4cEB9hrTLKWj85H1MzERcvT9CNNWnhHGUul iZxmLc94IyFbpn0ossMEKDpvI6TX5pDuXMr8tWCGUW2/+psKf2u23zrT1 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="336831177" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="336831177" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 09:08:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="703802344" Received: from silpixa00400883.ir.intel.com ([10.243.23.143]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 09:08:46 -0800 From: Brian Dooley To: dev@dpdk.org Cc: Brian Dooley , thomas@monjalon.net, stable@dpdk.org, Akhil Goyal , Fan Zhang Subject: [PATCH 11/11] cryptodev: fix missing C++ guards Date: Tue, 15 Feb 2022 17:08:17 +0000 Message-Id: <20220215170817.662136-12-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220215170817.662136-1-brian.dooley@intel.com> References: <20220215170817.662136-1-brian.dooley@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Some public header files were missing 'extern "C"' C++ guards, and couldnt be used by C++ applications. Add the missing guards. Fixes: 7a3357205755 ("lib: remove C++ include guard from private headers") Cc: thomas@monjalon.net Cc: stable@dpdk.org Signed-off-by: Brian Dooley --- lib/cryptodev/cryptodev_pmd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index d91902f6e0..24ff1a5480 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -5,6 +5,10 @@ #ifndef _CRYPTODEV_PMD_H_ #define _CRYPTODEV_PMD_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** @file * RTE Crypto PMD APIs * @@ -640,4 +644,8 @@ RTE_STD_C11 struct rte_cryptodev_asym_session { uint8_t sess_private_data[0]; }; +#ifdef __cplusplus +} +#endif + #endif /* _CRYPTODEV_PMD_H_ */