From: Konstantin Ananyev Date: Fri, 24 Jul 2015 15:18:25 +0000 (+0100) Subject: ethdev: fix C linkage type of latest functions X-Git-Tag: spdx-start~8647 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=48cc0baf8ac69aded9f96d291ff3ad75940c4a8e;p=dpdk.git ethdev: fix C linkage type of latest functions Move #ifdef __cplusplus to the end of the file. Fixes: 64b7acd861b1 ("ethdev: add multicast address filtering") Signed-off-by: Konstantin Ananyev --- diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index c901a2cbd9..62c166e0d2 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -3793,10 +3793,6 @@ int rte_eth_dev_get_eeprom(uint8_t port_id, struct rte_dev_eeprom_info *info); */ int rte_eth_dev_set_eeprom(uint8_t port_id, struct rte_dev_eeprom_info *info); -#ifdef __cplusplus -} -#endif - /** * Set the list of multicast addresses to filter on an Ethernet device. * @@ -3818,7 +3814,6 @@ int rte_eth_dev_set_mc_addr_list(uint8_t port_id, struct ether_addr *mc_addr_set, uint32_t nb_mc_addr); - /** * Enable IEEE1588/802.1AS timestamping for an Ethernet device. * @@ -3882,4 +3877,9 @@ extern int rte_eth_timesync_read_rx_timestamp(uint8_t port_id, */ extern int rte_eth_timesync_read_tx_timestamp(uint8_t port_id, struct timespec *timestamp); + +#ifdef __cplusplus +} +#endif + #endif /* _RTE_ETHDEV_H_ */