DPDK 25.03.0-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#include <rte_common.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
20struct rte_stats_bitrates;
21
29void rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data);
30
38struct rte_stats_bitrates *rte_stats_bitrate_create(void)
39 __rte_malloc __rte_dealloc(rte_stats_bitrate_free, 1);
40
51int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
52
53
68int 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_ */
#define __rte_dealloc(dealloc, argno)
Definition: rte_common.h:301
#define __rte_malloc
Definition: rte_common.h:290