git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
malloc: rename address mapping function to IOVA
[dpdk.git]
/
lib
/
librte_bitratestats
/
rte_bitrate.h
diff --git
a/lib/librte_bitratestats/rte_bitrate.h
b/lib/librte_bitratestats/rte_bitrate.h
index
b9f11bd
..
1646722
100644
(file)
--- a/
lib/librte_bitratestats/rte_bitrate.h
+++ b/
lib/librte_bitratestats/rte_bitrate.h
@@
-34,6
+34,12
@@
#ifndef _RTE_BITRATE_H_
#define _RTE_BITRATE_H_
#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.
/**
* 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,
* - 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_ */
#endif /* _RTE_BITRATE_H_ */