net/bonding: Fix header for C++
Subsystems (2)
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")
Signed-off-by Visa Hankala <[email protected]>
drivers/net/bonding/rte_eth_bond_8023ad.h +5 -4
@@ -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_ */
Quoted 6 lines · Visa Hankala
Apply C linkage to the whole header to allow use with C++.
Fixes dc40f17a36b ("net/bonding: allow external state machine in mode 4")Signed-off-by Visa Hankala <[email protected]>
Acked-by Tyler Retzlaff <[email protected]>
Quoted 10 lines · Tyler Retzlaff
Quoted 6 lines · Visa Hankala
Apply C linkage to the whole header to allow use with C++.
Fixes dc40f17a36b ("net/bonding: allow external state machine in mode 4")Signed-off-by Visa Hankala <[email protected]>Acked-by Tyler Retzlaff <[email protected]>
Acked-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/main, thanks.