Add extern "C" in rte_pmd_i40e.h when be compiled with CPP.
Fixes:
17e906a1ea9c ("net/i40e: support link status notification")
Cc: stable@dpdk.org
Signed-off-by: Prateek Agarwal <prateekag@cse.iitb.ac.in>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
*
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <rte_compat.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
int
rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _PMD_I40E_H_ */