Skip to contentSkip to conversation

net/bonding: Fix header for C++

PATCH Applied Visa Hankala 3 participants 3 messages Aug 9, 2023 – Aug 14, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bonding: Fix header for C++

Apply C linkage to the whole header to allow use with C++.

Fixes dc40f17a36b ("net/bonding: allow external state machine in mode 4")
drivers/net/bonding/rte_eth_bond_8023ad.h +5 -4
index 7ad8d6d00b..921b4446b7 100644
@@ -197,10 +197,6 @@ int
 rte_eth_bond_8023ad_slave_info(uint16_t port_id, uint16_t slave_id,
 		struct rte_eth_bond_8023ad_slave_info *conf);
 
-#ifdef __cplusplus
-}
-#endif
-
 /**
  * Configure a slave port to start collecting.
  *
@@ -331,4 +327,9 @@ rte_eth_bond_8023ad_agg_selection_get(uint16_t port_id);
 int
 rte_eth_bond_8023ad_agg_selection_set(uint16_t port_id,
 		enum rte_bond_8023ad_agg_selection agg_selection);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* RTE_ETH_BOND_8023AD_H_ */