From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 082FEA00BE for ; Tue, 15 Mar 2022 10:46:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 029ED4014F; Tue, 15 Mar 2022 10:46:49 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 57EAE4014F for ; Tue, 15 Mar 2022 10:46:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647337607; x=1678873607; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7QbrrQQkc80kzopt2RDzEzOFBQ+ztdG25DRmGrsG73E=; b=O6fv8V8KS8pF2VIWxQ6R4rgqL//sbXgAVWp3tObjSSreUOXMtXMkH4LM +GAUcxVmBh3XYAVriv2dYluEgj3b/vEY7ga/xOzwqtMErdh5Ar/rETTaQ s7peZnFk1POewreaUT6p38ZiVqi/wHCFtjE9ptReU7nzRKU/bpuRY3YrC TULCvFPjUUFu2xx8JOaXTjO6AwVn6kogEpMvrMhySxySU0Dz64tkq8Yey ohharSOiwX3AsM/KviPiLSNw4t1hWSMB75ey8hLPG6wyXrmOg28KXqh+T EmxNYaIgafY5h5Ryq1VKmjWxtoPMjVF8WaFberZL3uQmyPuSZMbcHp0da w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="255088564" X-IronPort-AV: E=Sophos;i="5.90,182,1643702400"; d="scan'208";a="255088564" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 02:46:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,182,1643702400"; d="scan'208";a="497955679" Received: from silpixa00400883.ir.intel.com ([10.243.23.39]) by orsmga003.jf.intel.com with ESMTP; 15 Mar 2022 02:46:29 -0700 From: Brian Dooley To: stable@dpdk.org Cc: christian.ehrhardt@canonical.com, Brian Dooley , roy.fan.zhang@intel.com, maxime.coquelin@redhat.com, Bruce Richardson , Chenbo Xia , Tyler Retzlaff , Tiwei Bie , Zhihong Wang , Jay Zhou Subject: [PATCH 19.11 3/3] vhost: add missing c++ guards Date: Tue, 15 Mar 2022 09:46:08 +0000 Message-Id: <20220315094608.1199076-4-brian.dooley@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220315094608.1199076-1-brian.dooley@intel.com> References: <20220315094608.1199076-1-brian.dooley@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit cedca4084a61e85323800022974c1fde5027cbb4 ] Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards. Fixes: d7280c9fffcb ("vhost: support selective datapath") Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Cc: roy.fan.zhang@intel.com Cc: maxime.coquelin@redhat.com Cc: stable@dpdk.org Signed-off-by: Brian Dooley Acked-by: Bruce Richardson Reviewed-by: Chenbo Xia Acked-by: Tyler Retzlaff --- lib/librte_vhost/rte_vdpa.h | 9 +++++++++ lib/librte_vhost/rte_vhost_crypto.h | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/lib/librte_vhost/rte_vdpa.h b/lib/librte_vhost/rte_vdpa.h index 9a3deb31d..9203c6d37 100644 --- a/lib/librte_vhost/rte_vdpa.h +++ b/lib/librte_vhost/rte_vdpa.h @@ -5,6 +5,10 @@ #ifndef _RTE_VDPA_H_ #define _RTE_VDPA_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file * @@ -200,4 +204,9 @@ rte_vhost_host_notifier_ctrl(int vid, bool enable); __rte_experimental int rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m); + +#ifdef __cplusplus +} +#endif + #endif /* _RTE_VDPA_H_ */ diff --git a/lib/librte_vhost/rte_vhost_crypto.h b/lib/librte_vhost/rte_vhost_crypto.h index b54d61db6..83ce06c55 100644 --- a/lib/librte_vhost/rte_vhost_crypto.h +++ b/lib/librte_vhost/rte_vhost_crypto.h @@ -5,6 +5,10 @@ #ifndef _VHOST_CRYPTO_H_ #define _VHOST_CRYPTO_H_ +#ifdef __cplusplus +extern "C" { +#endif + #define VHOST_CRYPTO_MBUF_POOL_SIZE (8192) #define VHOST_CRYPTO_MAX_BURST_SIZE (64) #define VHOST_CRYPTO_MAX_DATA_SIZE (4096) @@ -117,4 +121,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_ */ -- 2.25.1