DPDK  21.08.0
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 #include <rte_compat.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
20 struct rte_stats_bitrates;
21 
22 
30 struct rte_stats_bitrates *rte_stats_bitrate_create(void);
31 
38 __rte_experimental
39 void rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data);
40 
51 int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
52 
53 
68 int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
69  uint16_t port_id);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* _RTE_BITRATE_H_ */