net/i40e: add C++ include guard

Add extern "C" in rte_pmd_i40e.h when be compiled with CPP.

Fixes: 17e906a1ea ("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>
This commit is contained in:
Prateek Agarwal 2020-11-07 14:30:38 +05:30 committed by Ferruh Yigit
parent 9c70bbd88c
commit 876589e07e

View File

@ -14,6 +14,10 @@
* *
*/ */
#ifdef __cplusplus
extern "C" {
#endif
#include <rte_compat.h> #include <rte_compat.h>
#include <rte_ethdev.h> #include <rte_ethdev.h>
#include <rte_ether.h> #include <rte_ether.h>
@ -1130,4 +1134,8 @@ __rte_experimental
int int
rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev); rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);
#ifdef __cplusplus
}
#endif
#endif /* _PMD_I40E_H_ */ #endif /* _PMD_I40E_H_ */