DPDK  22.11.5-rc1
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 
37 void rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data);
38 
49 int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
50 
51 
66 int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
67  uint16_t port_id);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* _RTE_BITRATE_H_ */