DPDK  18.08.1
rte_bitrate.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2017 Intel Corporation
3  */
4 
5 #ifndef _RTE_BITRATE_H_
6 #define _RTE_BITRATE_H_
7 
8 #include <stdint.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
18 struct rte_stats_bitrates;
19 
20 
28 struct rte_stats_bitrates *rte_stats_bitrate_create(void);
29 
30 
41 int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
42 
43 
58 int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
59  uint16_t port_id);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* _RTE_BITRATE_H_ */