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