DPDK patches and discussions
 help / color / mirror / Atom feed
From: Prateek Agarwal <pratekag@gmail.com>
To: jia.guo@intel.com
Cc: dev@dpdk.org, Prateek Agarwal <pratekag@gmail.com>
Subject: [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 use DDP feature present in the NIC.
Date: Sat,  7 Nov 2020 14:30:38 +0530
Message-ID: <20201107090038.12802-1-pratekag@gmail.com> (raw)

Signed-off-by: Prateek Agarwal <pratekag@gmail.com>
 drivers/net/i40e/rte_pmd_i40e.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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 @@
+#ifdef __cplusplus
+extern "C" {
 #include <rte_compat.h>
 #include <rte_ethdev.h>
 #include <rte_ether.h>
@@ -1130,4 +1134,8 @@ __rte_experimental
 rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);
+#ifdef __cplusplus
 #endif /* _PMD_I40E_H_ */

                 reply	other threads:[~2020-11-07  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201107090038.12802-1-pratekag@gmail.com \
    --to=pratekag@gmail.com \
    --cc=dev@dpdk.org \
    --cc=jia.guo@intel.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git