From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 129BDA0527; Mon, 9 Nov 2020 07:24:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A8705913; Mon, 9 Nov 2020 07:24:16 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id E9B4858C4 for ; Mon, 9 Nov 2020 07:24:13 +0100 (CET) IronPort-SDR: Aa9kFDbUlizU76vdiS+2aToPvUIHjHFnRMrt6drfKjJwny1d2qS6sjzMvI9ucdQ1k5w3QtC7iD smSzpXzDm6NA== X-IronPort-AV: E=McAfee;i="6000,8403,9799"; a="149034640" X-IronPort-AV: E=Sophos;i="5.77,462,1596524400"; d="scan'208";a="149034640" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2020 22:24:10 -0800 IronPort-SDR: O5n1ckhdJk8DTkefGDBo8gbfQBqEj/+p9bRHheEOT0VJ5ER4ZkO8xQsmkqHaY42J0Ap/+2tJf3 45WMTJm+pcaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,462,1596524400"; d="scan'208";a="427891851" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga001.fm.intel.com with ESMTP; 08 Nov 2020 22:24:10 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 8 Nov 2020 22:24:09 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 9 Nov 2020 14:24:07 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Mon, 9 Nov 2020 14:24:07 +0800 From: "Guo, Jia" To: Prateek Agarwal CC: "dev@dpdk.org" Thread-Topic: [PATCH] Made i40 header CPP compatible using extern "C". Library headers work directly in cpp code. Linking errors thrown due to the absence of this change in i40e pmd header does not help in resolving the problem. I needed this header directly to us Thread-Index: AQHWtOSBwORGcIRXt068p9bxNtqUMKm/VwSQ Date: Mon, 9 Nov 2020 06:24:07 +0000 Message-ID: <3f94d598668b4279a2f5fb834124f3e2@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] Made i40 header CPP compatible using extern "C". Library headers work directly in cpp code. Linking errors thrown due to the absence of this change in i40e pmd header does not help in resolving the problem. I needed this header directly to us X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, Agarwal > -----Original Message----- > From: Prateek Agarwal > Sent: Saturday, November 7, 2020 5:01 PM > To: Guo, Jia > Cc: dev@dpdk.org; Prateek Agarwal > Subject: [PATCH] Made i40 header CPP compatible using extern "C". Library > headers work directly in cpp code. Linking errors thrown due to the absen= ce > of this change in i40e pmd header does not help in resolving the problem.= I > needed this header directly to use... >=20 Obviously that is not you want to merge the title and the commit log. Pleas= e separate it and update one new version.=20 > Signed-off-by: Prateek Agarwal > --- > drivers/net/i40e/rte_pmd_i40e.h | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/drivers/net/i40e/rte_pmd_i40e.h > b/drivers/net/i40e/rte_pmd_i40e.h index fc3560c28..4cb21c371 100644 > --- a/drivers/net/i40e/rte_pmd_i40e.h > +++ b/drivers/net/i40e/rte_pmd_i40e.h > @@ -14,6 +14,10 @@ > * > */ >=20 > +#ifdef __cplusplus > +extern "C" { > +#endif > + > #include > #include > #include > @@ -1130,4 +1134,8 @@ __rte_experimental int > rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev > *switch_dev); >=20 > +#ifdef __cplusplus > +} > +#endif > + > #endif /* _PMD_I40E_H_ */ > -- > 2.25.1