]> git.droids-corp.org - dpdk.git/commitdiff
bond: fix headers for C++
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Fri, 30 Jan 2015 13:21:11 +0000 (14:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Feb 2015 11:30:33 +0000 (12:30 +0100)
Add missing declarations to rte_bond_8023ad.h.
Remove 'extern "C"' declarations from bond private header file.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_pmd_bond/rte_eth_bond_8023ad.h
lib/librte_pmd_bond/rte_eth_bond_private.h

index 9adc6aa160448685c209cbec88a01cc2b8084e64..ebd0e934f625b7f91debd8465c0f3de624cfc30d 100644 (file)
 
 #include <rte_ether.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Actor/partner states
  */
@@ -211,4 +215,8 @@ int
 rte_eth_bond_8023ad_slave_info(uint8_t port_id, uint8_t slave_id,
                struct rte_eth_bond_8023ad_slave_info *conf);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* RTE_ETH_BOND_8023AD_H_ */
index e01e66b8de5a0f9a10d91573edb77e5632304a40..3da5a9ed52eca228e94067d62a018f110fa4e64d 100644 (file)
 #ifndef _RTE_ETH_BOND_PRIVATE_H_
 #define _RTE_ETH_BOND_PRIVATE_H_
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <rte_ethdev.h>
 #include <rte_spinlock.h>
 
@@ -276,8 +272,4 @@ int
 bond_ethdev_parse_time_ms_kvarg(const char *key __rte_unused,
                const char *value, void *extra_args);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif