net/mlx5: fix using flow tunnel before null check
[dpdk.git] / drivers / net / i40e / rte_pmd_i40e.h
index 0f6715e..4cb21c3 100644 (file)
  *
  */
 
-#include <rte_ethdev_driver.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <rte_compat.h>
+#include <rte_ethdev.h>
+#include <rte_ether.h>
 
 /**
  * Response sent back to i40e driver from user app after callback
@@ -1128,4 +1134,8 @@ __rte_experimental
 int
 rte_pmd_i40e_set_switch_dev(uint16_t port_id, struct rte_eth_dev *switch_dev);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _PMD_I40E_H_ */