malloc: rename address mapping function to IOVA
[dpdk.git] / lib / librte_bitratestats / rte_bitrate.h
index b9f11bd..1646722 100644 (file)
 #ifndef _RTE_BITRATE_H_
 #define _RTE_BITRATE_H_
 
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  *  Bitrate statistics data structure.
  *  This data structure is intentionally opaque.
@@ -79,6 +85,10 @@ int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
  *  - Negative value on error
  */
 int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
-       uint8_t port_id);
+                          uint16_t port_id);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* _RTE_BITRATE_H_ */